Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
开发者_运维技巧 Improve this questionI have started programming few years ago. and generally i use for programming C or C#. and now i want to learn some algorithms. to learn and to teach my friends.
so which algorithms do you advise for beginners?
Algorithms for searching and sorting are usually used first in teaching algorithms to CS students. So you may want to start there.
For instance, see Sorting Algorithms.
Here it is a book set about algorithms in general -> Art of Computer Programming
Subscribe at Projet Euler, tons of original algorithm, teaching you a lot of optimisation.
http://projecteuler.net/
You may already started many years ago, do you remember how long division works?
for more normal compsci stuff perhaps insertion sort, its simple, and unlike bubble sort a bit more useful
Going to add algorithms concerning trees and, more generally, graphs to the list. They are everywhere in programming, learning to recognize and exploit them is crucial to efficiently solve a large amount of problems (maybe even the majority of all problems programmers encounter).
精彩评论