Problem Detail: Definitions According to my UML teacher formal means strictly according to rules, officially and how it’s supposed to be. He says a formal language = syntax + symbols + spelling. Another term he uses is deterministic. According to him Read More …
Category: Uncategorized
[Solved]: Average length of s-t (simple) paths in a directed graph
Problem Detail: Given the fact that $s$-$t$ path enumeration is a #P-complete problem, could there be efficient methods that compute (or at least approximate) the average length of $s$-$t$ path without enumerating them? What if paths are allowed to revisit vertices? Read More …
[Solved]: Height of a full binary tree
Problem Detail: A full binary tree seems to be a binary tree in which every node is either a leaf or has 2 children. I have been trying to prove that its height is O(logn) unsuccessfully. Here is my work so Read More …
[Solved]: Why is O(n log n) the best runtime there is?
Problem Detail: I am taking a course on Coursera about algorithm design. The course said that a time of $O(n log n)$ is considered to be good. However, there are faster runtimes such as (from now on just assume it is Read More …
[Solved]: r-regular graph and hamiltonian path
Problem Detail: I am having some issues proving a problem I am working on. I have been sketching out examples but the proof is not jumping out at me. Question: Let $G = (V,E)$ be an undirected $r$-regular graph (that is Read More …
[Solved]: Neural Network weight selection using Genetic Algorithm
Problem Detail: Hi I want to ask about weight selection in neural network using genetic algorithm. Right now what I understand is Initialize population Encode the weight of the neural network to the chromosome Calculating the error and fitness crossover and Read More …
[Solved]: What type of formal notation is being used here to represent functional algorithms?
Problem Detail: Interested in learning more about algorithm design in functional programming, I picked up Andrew Bird’s Pearls of Functional Algorithm Design. I have experience with a number of programming languages, but my only experience with functional programming is in Scala. Read More …
[Solved]: reducing subset-sum to partition
Problem Detail: Subset-sum: Given a list of numbers, find if a non-empty sublist has sum 0 (there’s a variation where we want sum=k instead of 0, but 0 is easier for analysis) Partition: Given a list, can it be partitioned Read More …
[Solved]: How does Grover’s Quantum Sorting avoid reading the list?
Problem Detail: It is well known now that Grover’s quantum algorithm can SORT a database of $N$ entries in $O(sqrt{N})$ time. How can an algorithm work without reading through the list of entries which needs $O(N)$ operation. How does Grover’s algorithm Read More …
[Solved]: Deciding if a Turing machine has made a left move
Problem Detail: In writing a decider for a machine to see if it has made a left move or not on an input of w, it is said that if we continue the computation for $|w|+N+1$ ($N$ : number of states) Read More …