What algorithm would be good for this? I have a list of tickets and there is an assigned priority from 1-5, 1 being the lowest and 5 the most important. Arithmetic mean wouldn\'t do me any good becau
Here\'s the setup: I have an algorithm that can succeed or fail. I want it to succeed with highest probability possible.
I\'d like to profile some VCS software, and to do so I want to generate a set of random files, in randomly arranged directories. I\'m writing the script in Python, but my question is briefly: how do I
Is there any nice algorithm to find the nearest prime number to a given real number?I only need to search within the first 100 primes or so.
I was asked to stay away from HashMap or any sort of Hashing. The question went something like开发者_如何学运维 this -
I need help making an algorithm to detect that all the conditions for HA开发者_开发技巧VE_ENOUGH_DATA are met (and continuously checking until they are met) and I am stumped as to how to calculate all
I am writing a program that an HTML scraper that when it grabs the HTML from the page, it returns the HTML, and I want to Grab words that are All Capital letters, and then stores these words into a da
I am looking for a library which I can plug into a distributed application which implements any gossip-based membership protocol.
Is there any algorithm can traverse a tree开发者_StackOverflow社区 recursively in level-first order and non-recursively in postorder.Thanks a lot.To get an effectively recursive breadth-first search y
Is there a simple way to determine how many milliseconds I need to \"Sleep\" for in order to \"emulate\" a 2 mhz speed. In other words, I want to execute an instruction, call System.Threading.Thread.S