Questions tagged [theory]

Programming-language-agnostic Questions that focus on the theoretical aspects rather than the actual implementations.

The following tags exists that deal with a specific subsets of theoretical aspects of programming.

  • Compiler-Theory
  • Computation-Theory
  • Game-Theory
  • Graph-Theory
  • Language-Theory
  • Number-theory
  • Probability-Theory
  • Set-Theory
1710 questions
784
votes
23 answers

What is a lambda (function)?

For a person without a comp-sci background, what is a lambda in the world of Computer Science?
Brian Warshaw
  • 21,296
  • 8
  • 50
  • 70
549
votes
15 answers

What is Turing Complete?

What does the expression "Turing Complete" mean? Can you give a simple explanation, without going into too many theoretical details?
dlinsin
  • 17,231
  • 13
  • 39
  • 51
548
votes
15 answers

Difference Between Cohesion and Coupling

What is the difference between cohesion and coupling? How can coupling and cohesion lead to either good or poor software design? What are some examples that outline the difference between the two, and their impact on overall code quality?
JavaUser
  • 22,494
  • 44
  • 98
  • 127
459
votes
14 answers

What is an NP-complete in computer science?

What is an NP-complete problem? Why is it such an important topic in computer science?
Claudiu
  • 206,738
  • 150
  • 445
  • 651
415
votes
56 answers

Storing Images in DB - Yea or Nay?

So I'm using an app that stores images heavily in the DB. What's your outlook on this? I'm more of a type to store the location in the filesystem, than store it directly in the DB. What do you think are the pros/cons?
James Hall
  • 5,698
  • 6
  • 24
  • 27
414
votes
18 answers

What is a Y-combinator?

A Y-combinator is a computer science concept from the “functional” side of things. Most programmers don't know much at all about combinators, if they've even heard about them. What is a Y-combinator? How do combinators work? What are they good…
388
votes
19 answers

Way to go from recursion to iteration

I've used recursion quite a lot on my many years of programming to solve simple problems, but I'm fully aware that sometimes you need iteration due to memory/speed problems. So, sometime in the very far past I went to try and find if there existed…
347
votes
32 answers

Are there any O(1/n) algorithms?

Are there any O(1/n) algorithms? Or anything else which is less than O(1)?
Shalmanese
  • 5,096
  • 9
  • 27
  • 41
311
votes
25 answers

Big-O for Eight Year Olds?

I'm asking more about what this means to my code. I understand the concepts mathematically, I just have a hard time wrapping my head around what they mean conceptually. For example, if one were to perform an O(1) operation on a data structure, I…
Jason Baker
  • 171,942
  • 122
  • 354
  • 501
302
votes
15 answers

What is referential transparency?

What does the term referential transparency mean? I've heard it described as "it means you can replace equals with equals" but this seems like an inadequate explanation.
Claudiu
  • 206,738
  • 150
  • 445
  • 651
249
votes
6 answers

What's "P=NP?", and why is it such a famous question?

The question of whether P=NP is perhaps the most famous in all of Computer Science. What does it mean? And why is it so interesting? Oh, and for extra credit, please post a proof of the statement's truth or falsehood. :)
raldi
  • 19,496
  • 29
  • 73
  • 85
237
votes
15 answers

What is the point of interfaces in PHP?

Interfaces allow you to create code which defines the methods of classes that implement it. You cannot however add any code to those methods. Abstract classes allow you to do the same thing, along with adding code to the method. Now if you can…
mk.
  • 24,966
  • 13
  • 35
  • 40
193
votes
12 answers

What good are SQL Server schemas?

I'm no beginner to using SQL databases, and in particular SQL Server. However, I've been primarily a SQL 2000 guy and I've always been confused by schemas in 2005+. Yes, I know the basic definition of a schema, but what are they really used for in…
Erik Funkenbusch
  • 90,480
  • 27
  • 178
  • 274
185
votes
4 answers

Simple basic explanation of a Distributed Hash Table (DHT)

Could any one give an explanation on how a DHT works? Nothing too heavy, just the basics.
Gustavo Carreno
  • 8,809
  • 13
  • 42
  • 72
156
votes
9 answers

How to write a simple database engine

I am interested in learning how a database engine works (i.e. the internals of it). I know most of the basic data structures taught in CS (trees, hash tables, lists, etc.) as well as a pretty good understanding of compiler theory (and have…
a_m0d
  • 11,566
  • 14
  • 53
  • 77
1
2 3
99 100