L
L
larionov_n2015-07-13 04:02:19
MySQL
larionov_n, 2015-07-13 04:02:19

Does anyone have experience with using "Red Black Tree to implement comments (Python, mySQl)"?

For training, I want to implement non-standard blog comments. Of course there are easier ways, I like that the height of the tree is O(log(n)). For example, I immediately thought that I need to write a couple of classes Tree, Node and implement the algorithm. Make methods in the "Comment" entity model where inside to use tree methods. But I have a bad idea about the part related to ORM. I want to use Django ORM or sqlAlchemy. Are there pitfalls? What can be used from the Django API for convenience? How would you do? Research task.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-07-13
@larionov_n

https://github.com/MartinThoma/algorithms/blob/mas...
https://www.google.ru/search?q=django+red+black+tree

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question