开发者

Sorting algorithms in data structures

开发者 https://www.devze.com 2023-02-22 11:53 出处:网络
is there a free web resource that give开发者_如何学Pythons a quick list of \'Which data structure uses which sorting alorithm\'?It really depends on the programming language.Just assume that all data

is there a free web resource that give开发者_如何学Pythons a quick list of 'Which data structure uses which sorting alorithm'?


It really depends on the programming language. Just assume that all data structures use the best sorting algorithm possible.

Trees are generally faster for searching and sorting (they often sort as they go, like a BST or red-black tree). Lists are generally pretty lame. Array structures generally use something like quick-sort for their sorting.

Do you have a specific application that needs to be super fast? Post that and someone could suggest the best data-structure. It really depends on the language, but you can generally assume that the people who designed the structures did it in the most efficient way possible.

0

精彩评论

暂无评论...
验证码 换一张
取 消