tree-structure
Creating an efficient friendlist using PHP
I would like to build a website that has some elements of a social network. So I have been trying to think of an efficient way to store a friend list (somewhat like Facebook).[详细]
2023-03-24 03:50 分类:问答root in tree like structure with auto-referencing foreign keys
My application uses some kind of \"virtual folders\" so I need to store the tree structure in the database. The table holding the data is quite simple, it has 3 columns:[详细]
2023-01-11 03:57 分类:问答Packing tree into array in Javascript
Ok, so this shouldn\'t be difficult, however I have encountered weird and bizarra flukes. I am trying to pack a tree into an array, where each node is something like:[详细]
2022-12-20 11:04 分类:问答Tree search function
Any node can have any number of children. To search this tree i wrote something like this function Search(key, nodes){[详细]
2022-12-20 01:57 分类:问答