background preloader

Algorithms

Facebook Twitter

Cryptography

List of algorithms. Julian m bucknall >> Calculating the number of months & days between two dates. The question on a newsgroup generally goes like this, "I want to calculate the number of months between two dates. How do I do it? " Algorithms from not thinking about the problem The general answer goes something like this. Calculate the month and year for each date. Subtract the month values and the year values.

Multiply the difference in years by 12 and add to the difference in months to give the result. Let's check the algorithm out with a couple of examples: What's the difference in months between 15-Jan-2003 and 15-Jul-2004? Another example: the difference between 15-Jul-2003 and 15-Jan-2004. The final example is this one: the difference between 31-Jan-2003 and 1-Feb-2003. So a better algorithm might be to do the same thing, but to return the number of days as well. I got an example of this algorithm from a not-very-good Visual Basic "helper" site.

Let's try it. Another example: the number of months and days between 30-Nov-2002 and 30-May-2003? Thinking about the problem Summary. List of all algorithms, classified by purpose. A complete list of all major algorithms (300), in any domain. The goal is to provide a ready to run program for each one, or a description of the algorithm. Programming languages include Java, JavaScript and PHP, C, C++ either in direct form or generated from a Scriptol source.

Automata Powerset construction. Artificial intelligence Alpha-beta. Computer vision Epitome. Genetic algorithms They uses three operator. selection (choose solution), reproduction (use choosen solutions to construct other ones), replacement (replace solution if better). Neural networks Hopfield net. Machine learning PAVA (Pool-Adjacent-Violators Algorithm). Bioinformatics and Cheminformatics Needleman-Wunsch. Compression Lossless compression algorithms Burrows-Wheeler transform. Entropy encoding Coding scheme that assigns codes to symbols so as to match code lengths with the probabilities of the symbols . Huffman coding. Lossy compression algorithms Linear predictive coding. Cryptography Secret key (symmetric encryption) University lectures computer science. Whether your goal is to earn a promotion, graduate at the top of your class, or just accelerate your life, lectures can help get you there.

Our archives of lectures cover a huge range of topics and have all been handpicked and carefully designed by experienced instructors throughout the world who are dedicated to helping you take the next step toward meeting your career goals. Lifelong learns can turn their free time turn into self-improvement time. The online lectures on this list are more than lecture notes or a slideshow on a topic -- they were designed for audiences like you, with carefully sequenced themes and topics taught by veteran educators, and often with additional resources for your own independent study. The lectures are available to anybody, completely free of charge. Lecture courses are a valid and vital learning tool, and may be one of the best methods of learning available.

Sorting Algorithms. Computer Programming Algorithms Directory. Dictionary of Algorithms and Data Structures. Koders - Source Code Search Engine.