It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am working on finding the similarity/differences in the source code of different java programs.
I've used an implementation of the Levenshtein algorithm to find how similar two programs are.
I want to know if there is any algorithm that can help in finding the exact positions where two strings differ.
You will find more than you ever wanted to know by looking at the inner workings of diff - see for example this link or simply the wiki article
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am trying to bind (in XAML) to a List in C++/CX and I can't seem to have any Lists. Where'd they all go? Any kind of list will do... Even a Dictionary, or Stack, or ... something! Or has C++ changed that much since I last used it?
There are C++/CX implementations of the Windows collection interfaces in the Platform::Collections namespace, defined in <collection.h>.
See also the article on Collections in C++/CX on MSDN.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Can anybody give me some examples and brief explanation of parallel computing in image processing (that could make use of CUDA kernels on an Nvdia GPU) ? For example with regards to pixels my perception so far is that the image could be split into smaller sections and same process applied to those sections to build the overall objective, but is there more to it than that? Also how would that be achieved in terms of programming?
Check this : http://supercomputingblog.com/cuda/intro-to-image-processing-with-cuda/
The linked page contains direct answers to your questions, and example code for a quick start.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Can you give me an algorithm to print all permutations of a string, with no duplicates, both recursively and iteratively?
This is actually a good question since permutations are used fairly frequently and can be hard to implement especially without redundancies. Of course the algorithm is pretty simple. Here is a good site to help you out (after googling around for a second). Check it out, hope its what you are looking for! http://www.bearcave.com/random_hacks/permute.html
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I don't know if this is a proper question, but if I want to write a Sokoban game in Haskell (or other functional programming languages), what's the differences with writing it in C? [Edit: does Haskell have any advantages over C in Sokoban ?]
I would like to ask this question because of two reasons. First, my only interest in programming is to write Sokoban programs (I have already written several sokoban programs). Second, I've read some introduction/tutorial articles about Haskell, but have no idea how these new methods can be applied to the Sokoban logic.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
On Shai's blog entry about Searchable list, I noticed that he commented that since he optimized LWUIT some things are broken.
I want to implement search on my list in LWUIT, please how do I implement? Some basic examples would also be very helpful, thank you.
The only thing you need to do is explicitly invoke form.registerAnimated() which was missing in my original demo code.