algorithm
Statistically optimize a genetic algorithms selection operator
I am familiar with the methods of selection for genetic algorithms such as stochastic universal sampling, roulette wheel, tournament and others. However, I realize that these methods are close to rand[详细]
2023-04-13 01:38 分类:问答Algorithm to find very common occurences of substrings in a set of short strings
I have a list of about 1500 strings from an external database and over time, as a group of business users managed them, they came to have recurring substrings which have semantic value.[详细]
2023-04-13 00:31 分类:问答BTree- predetermined size?
I read this on wikipedia: In B-trees, internal (non-leaf) nodes can have a variable number of child nodes within some pre-defined range. When data is inserted or[详细]
2023-04-13 00:18 分类:问答Generate lines from photo/image
I would like to generate the outlines/lines of an image.- I know you can use a laplacian filter to generate the outline image but I need to tak开发者_如何学Goe it one step further. I want to actually[详细]
2023-04-13 00:17 分类:问答How to simplify a fraction
I want to simplify a fraction in my application. The fraction is like, x/y where x and y are integers.[详细]
2023-04-13 00:17 分类:问答Interview challenge: Find the different elements in two arrays
Stage 1: Given two arrays, say A[] and B[], how could you find out if elements of B is in A? 开发者_JAVA百科Stage 2: What about the size of A[] is 10000000000000... and B[] is much smaller than this[详细]
2023-04-13 00:06 分类:问答Why does a hashtable degenerate into a Linked List when a hashcode() implementation returns a constant value?
// The worst possible legal hash function - never use! @Override public int hashCode() { return 42; } It’s legal because it ensures that equal objects have the same hash code. It’s atrocious beca[详细]
2023-04-12 23:51 分类:问答Compressing strings with common parts
I have an application that manages a large number of strings. Strings are in a path-like format and have many common parts, but without a clear rule. They are not paths on the file-system but can be c[详细]
2023-04-12 22:03 分类:问答Java - How to get the double from an Integer (Money)
I got: int number = 1255; -> //It could also be 125(1€25Cent) or 10(10Cent) or 5(5Cent) publi开发者_如何转开发c double toMoney(int number)[详细]
2023-04-12 21:59 分类:问答Getting all permutations of a word where letters may have variants
i am looking for the pseudocode algorithm to the following problem. i want to get all permutations of a word.[详细]
2023-04-12 21:26 分类:问答