Better node sorting algorithm for schoolwork

⚓ rust    📅 2025-05-10    👤 surdeus    👁️ 5      

surdeus

Warning

This post was published 51 days ago. The information described in this article may have changed.

This was a practice assessment that already happened, and whilst I was proud that I thought of something complication yet works, I think that there are probably issues, because the idea itself is quite cursed. The idea was to make a bird orginizing tool, and there is supposed to be pre-existing data from a json file, here is the sorting function I made, its supposed to count the amount of refrences each bird made to a taxonomic grouping, and the more refrences means the higher the node, and with some algorythim is kinda sorted it, but it doesnt seem efficent enough, I am looking for ideas on how to improve, here it is:

full code:

json:

3 posts - 2 participants

Read full topic

🏷️ rust_feed