Problem Detail: Given a sorted array A, we have to find the position of an element m in it. (It is also given that the element exists in the array.) However there is a constraint. Like in a game you have Read More …
Author: ignougroup
[Solved]: Is there a difference between pure binary and binary?
Problem Detail: In some books and on the internet I occasionally find “pure binary” and “binary” on its own, is there a difference between these two terms? If so, can someone describe briefly what they are? Asked By : Saras Answered By Read More …
[Solved]: Is something more than Turing complete Turing complete?
Problem Detail: In complexity theory, we do not call a decision problem that is not in NP “NP-complete”. But in computability, do we call a machine model “Turing complete” if it can compute functions which Turing machines can not? The definition Read More …
[Solved]: Reconstructing Graphs from Degree Distribution
Problem Detail: Given a degree distribution, how fast can we construct a graph that follows the given degree distribution? A link or algorithm sketch would be good. The algorithm should report a “no” incase no graph can be constructed and any Read More …
[Solved]: Memory access on byte/word addressable memory
Problem Detail: I’m doing a question on architecture and I’ve come across this question which I do not understand how to answer the question. Q. How many bits are required to address 4G x 32-bit main memory if a) Main memory Read More …
[Solved]: How are lamport clocks implemented in real world distributed systems?
Problem Detail: Can anyone explain, how lamport clocks implementations are used in modern distributed systems? Can you name an open source package which implements this algorithm? Asked By : Nitish Upreti Answered By : Grisha Weintraub Amazon’s Dynamo [1] is a distributed storage Read More …
[Solved]: Subset sum algorithm in O(n³ log n)?
Problem Detail: I think that I have found an algorithm which resolve exactly the subset sum problem in $O(N^3)$ in the worst case, only for positive numbers. After my research, I’m lost between all the algorithms for this problem. $O(2^N*N)$ for Read More …
[Solved]: Difference between Dependent type , refinement type and Hoare Logic
Problem Detail: I know little dependent type theory. From wikipedia : A dependent type is a type whose definition depends on a value. And from my Type theory course i recall that a dependent type is : Family of types indexed Read More …
[Solved]: What is the complexity of the emptiness problem for 2-way DFAs?
Problem Detail: I’m wondering, what is the time-complexity of determining emptiness for 2-way DFAs? That is, finite automata which can move backwards on their read-only input tape. According to Wikipedia, they are equivalent to DFAs, though the equivalent DFA might be Read More …
[Solved]: Particularly Tricky Recurrence Relation (Master’s Theorem)
Problem Detail: Master’s theorem is shown below, The recursive function to be solved is shown below, I understand that a refers to the number of recursive calls in this function (3 in this case). b refers to what the input size Read More …