Problem Detail: How do people measure performance overhead? Whenever someone is bragging about how their program or application performs better than another, they talk about particular measurements, eg time, performance etc. Whilst I understand how time to perform a task can Read More …
Category: Uncategorized
What is the relation between functors in SML and Category theory?
Problem Detail: Along the same thinking as this statement by Andrej Bauer in this answer The Haskell community has developed a number of techniques inspired by category theory, of which monads are best known but should not be confused with monads. Read More …
In what sense is the Mandelbrot set “computable”?
Problem Detail: The Mandelbrot set is a beautiful creature in Mathematics. There are a lot of beautiful images of this set created with high precision, so obviously this set is “computable” in some sense. However, what concerns me is the fact Read More …
Grammar for ${a^n b^n c^{n+m}}$
Problem Detail: Can we define a grammar for the following language? $$L = {a^n b^n c^{n+m} | n,m>=0},. $$ I can define one for this: $$L={a^nb^n|n,m>=0} $$ S –> aSb | λ or this one: $$L={b^nc^{n+m}|n,m>=0} $$ S –> Ac A Read More …
When inserting into a binary tree, is there a universal agreed upon place to insert then new node to minimize complexity?
Problem Detail: Do programmers (in real life), always insert at the top node or somewhere else? Because in my text book CLRS it is not made very clear, so the insertion process can take a best case of O(1), if you Read More …
How to make a language homoiconic
Problem Detail: According to this article the following line of Lisp code prints “Hello world” to standard output. (format t “hello, world”) Lisp, which is a homoiconic language, can treat code as data in this way: Now imagine that we wrote Read More …
Which NP-Complete problem has the fastest known algorithm?
Problem Detail: In terms of worst-case asymptotic runtime, which NP-complete problem has the fastest-known (exact) algorithm and what is the algorithm? Is there something known that is faster than $O(n^2*2^n)$? Asked By : Wuschelbeutel Kartoffelhuhn Answered By : Pål GD Vertex Cover has Read More …
Size of framebuffer lookup table
Problem Detail: If the frame buffer has 8 bits per pixel and 8 bits are allocated for each of the R, G, B components, what would be the size of the lookup table? a) 24 bytes b) 1024 bytes c) Read More …
What is a linearization point?
Problem Detail: With respect concurrent programming, what is a linearization point? They seem to occur at a compare-and-swap instruction apparently. The best definition I could find is here. All function calls have a linearization point at some instant between their invocation Read More …
Compressing two integers disregarding order
Problem Detail: Comparing an ordered pair (x,y) to an unordered pair {x, y} (set), then information theoretically, the difference is only one bit, as whether x comes first or y requires exactly a single bit to represent. So, if we’re given Read More …