Problem Detail: If we regard a tree as a partial ordered set, it becomes a special case of a join-semilattice. For a join-semilattice, we want to be able to compute the (unique) least upper bound of two elements (more or less) Read More …
Author: ignougroup
[Solved]: Algorithms: Difference Constraints
Problem Detail: I’m currently studying for my algorithms final and I came across a practice problem that I can’t seem to figure out. Here’s the problem: Consider the following set of difference constraints: x1 – x4 <= 1 x2 – x1 Read More …
[Solved]: What is this fraction-like “discrete mathematics”–style notation used for formal rules?
Problem Detail: In the paper “A Conflict-Free Replicated JSON Datatype”, I encountered this notation for formally defining “rules”: What is this notation called? How do I read it? For example: the DOC rule doesn’t have anything in its “numerator” — why not? Read More …
[Solved]: Is there an algorithm for converting Turing machines into equivalent Lambda expressions?
Problem Detail: We know that Turing machines and Lambda Calculus are equivalent in power. And There are proofs for that, I’m sure. But is there an algorithm, a systematic way for us to convert a Turing machine into a Lambda Calculus Read More …
[Solved]: How to decode multiple-digit gamma codes and get the gap sequence?
Problem Detail: How to decode gamma code ($gamma$ code): 1110001110101011111101101111011 and get the gap sequence? Detailed information about Gamma codes ($gamma$ codes) with a brief example of decoding can be found here. But in their example there is only one case Read More …
[Solved]: Returning a random subset with length k of N strings while only storing at most k of them
Problem Detail: Here’s the problem. I’ve written a program that reads strings from stdin, and returns a random subset of those strings. The only other argument provided to the program is the length of the subset, $k$. The subset must contain Read More …
SRS for Library Management System
SRS for Library Management System This page contains Library management system project SRS document. A development process consist of various phases, each phase ending with a defined output. The main reason for having a phased process is that it breaks the Read More …
SRS of library management system
Download now View Sample
What is the name of this prime number algorithm?
Problem Detail: Does the following recursive algorithm have a name? If so, what is it? procedure main(): myFilter = new Filter( myPrime = 2 ) //first prime number print 2 //since it would not otherwise be printed for each n in Read More …
Fastest square root method with exact integer result?
Problem Detail: I am dealing with the problem of computing $ s = lfloor sqrt(x)rfloor$ with $x in [0,30000^2]$. The common sqrtf(x) on C language is too slow for this case, however it always gives me the correct result. I’ve tried Read More …