Closed. This question is off-topic. It is not currently accepting answers. 开发者_JS百科 Want to improve this question? Update the question so it's on-topic for Stack Overflow.
I am facing an issue where I need to sort elements based on different views maintaining a bunch of buckets varying view by view.
I have studied many about reduction but I have a bad problem in it: I take this from CLRS : \" ... by “reducing” solving problem A to solving problem B, we use the “easiness” of B to prove the “
I\'m looking for an intuitive, real-world example of a problem that takes (worst case) exponential time complexity to solve for a talk I am giving.
I\'m looking for a C++ implementation of a data structure ( or a combination of data structures ) that meet the following criteria:
Its a string problem.First remove all repeated consecutive substring with length 1,then delete substring of length 2 and so on...
In a top-down merge sortthe recursive functions are called in this fashion: void mergesort(Item a[], int l, int r) {
You are given a string. Develop a function to remove duplicate characters from that string. String could be of any length. Your algorithm must be in space. If you wish you can use constant siz开发者_如
For an undirected, unweighted graph, is there any difference in the time complexity of the algorithm to compute its开发者_开发问答 average shortest path length vs, the complexity of the algorithm whic
I have a map of key-value pairsof huge size, approxi开发者_运维知识库mately 10^7, and I have to loop through it 15 times a second in order to update its contents