Tree sort (sorting)¶
Current realization based on tree sort. Our algorithms can do 2 simple abstract things - add new elem and return sorted container So, below i realized and compare different approaches to implementation
Functions describes¶
Examples of binary tree, made in the style of OOP
It’s just example of binary sort functions, based or not on his own tree.
-
class
tree_sort.funcs.
BaseNodeClass
[source]¶ Abstract Binary Tree Class All other based on this interface
-
class
tree_sort.funcs.
SingleNodeClass
(data: numbers.Integral = None)[source]¶ All operations and storage takes place inside one class
-
class
tree_sort.funcs.
TwoNodeClass
[source]¶ Use inner class Node for storage and TwoNodeClass for for everything else based on https://gist.github.com/samidhtalsania/6659380
-
class
Node
(key: numbers.Integral)[source]¶ Inner class of item, which contain info about neightbours
-
class
Data describes¶
Generate test data for test performance