Omgili - forum search, search forums  
  

Discussions about comparisons

Displaying 1 - 10 out of 255,405 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
If you're in doubt Knuth's The Art of Computer Programming... .
The lower bound for the number of comparisons is six: http://en.wikipedia.org/wiki/Selection%5Falgorithm In this case, the actual minimum number of required comparisons is also six .
If you have 5 distinct numbers, how many comparisons at most do you need to sort this using merge sort?
Started by on , 6 posts by 6 people.  
You can merge two pairs of lists with 2 comparisons....
Initially you have five 1-long lists.
According to Wikipedia : In the worst case, merge sort does an amount of comparisons equal, I suppose the worst case number of comparisons is L1+L2-1.
I have a function which takes two strings and gives out the cosine similarity value which shows the relationship between both texts. If I want to compare 75 texts with each other, I need to make 5,625 single comparisons to have all texts compared with...
Started by on , 3 posts by 3 people.  
Without the details of your function, it's difficult that are too far away from each other, avoiding many ... .
If your algorithm is pair-wise, then you probably can't reduce the number of comparisons want to reduce the number of comparisons.
Ask your Facebook Friends
Design an efficient algorithm to sort 5 distinct - very large - keys less than 8 comparisons in the worst case. You can't use radix sort.
Started by on , 10 posts by 9 people.  
I suggest from above by the comparison reveals an obvious structure for the first comparisons, but it becomes B D A / \ B C E - 1 Comparison....
To hard-code a comparison sequence because of the low number of required comparisons.
Python supports an elegant syntax for "chained comparisons", for example: 0 <= n < 256 meaning, 0 <= n and n < 256 Knowing that it's a fairly flexible language syntactically, is it possible to emulate this feature in Scala?
Started by on , 3 posts by 3 people.  
You need, then, four ....
So we need to call the "<=" and "<" methods on an object, and each such method receives a parameter .
One have to remember that, aside from a few keywords, everything in Scala is a method invokation on an object .
Not really.
I have a function which takes two arrays containing the tokens/words of two texts and gives out the cosine similarity value which shows the relationship between both texts. The function takes an array $tokensA (0=>house, 1=>bike, 2=>man) and ...
Started by on , 3 posts by 3 people.  
So it gives half of comparisons.
You compare every word with 74 others, but you don't need to compare word1 with word2 and again word2 with word1 .
In fact you have only 75 * 74 / 2 = 2775 comparisons.
I am a Java guy and therefore would prefer a Java based framework for an auction site that I am planning to develop from scratch. But all my colleagues and friends have pointed out to me that the better sites that are coming up now-a-days are mostly written...
Started by on , 4 posts by 4 people.  
For example, the PetShop comparisons between Java what you know.) I think that the most important performance comparison to do is to compare but an indication that it is possible.
I haven't seen any good performance comparisons.
When I have to implement equality comparers for public class SampleClass { public int Prop { get; set; } } Should I make null == new SampleClass() and new SampleClass() == null and new SampleClass().Equals(null) false? And what about new SampleClass()...
Started by on , 9 posts by 9 people.  
Can you.
SampleClass() doesn't really make any sense (and, really, none of the other comparisons do).
Why do comparisons of NaN values behave differently from all other values? That is, all comparisons with the operators ==, <=, >=, <, > where one or both values is NaN returns false, contrary to the behaviour of all other values. I suppose...
Started by on , 11 posts by 11 people.  
Comparisons....
Therefore all comparisons return false if the operands' formats differ.
Thus, they can't is greater or less than another undefined value .
The comparisons for floating point numbers compare numeric values.
Result in null.
I need some help with my CS homework. I need to write a sorting routine that sorts an array of length 5 using 7 comparisons in the worst case (I've proven that 7 will be needed, because of the height of the decision tree). I considered using the decision...
Started by on , 6 posts by 6 people.  
Consider....
EDIT: I don't think this is going to work: Step 4 is broken, and might require an 8th comparison.
If the initial comparison resulted in the remaining element comparisons.
It correctly using the remaining two comparisons.
Page: 1   2   3   4   5   6   7   8   9   10  
Related Searches
multitrack comparison    antivirus comparison    Comparisons    kuro comparison    AMD Intel comparison    TL-60 speed comparison    1000cc car comparison    pentax canon comparison    pixel shader comparison    athlon turion comparison   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost