Quote:
Originally posted by quant
Can you give an example or explain when having a filtered tree is a necessity for the problem at hand, so that I can better understand its usefulness?
|
I'll try and and give a quick example.
You want a tree when things have a parent/child relationship. You want to filter when you just want to narrow down what you are looking at while still keeping that relationship.
Here is a simple example of a backpacking list (it seems simpler to than a todo list which is my main use case). The tree is used to group similar items or group them by where they are packed. I have a people column that indicates if an item is used when I am going solo (lighweight being important) or with a group (need to support group and can share load with them). So I can quickly filter the list to just the stuff I will need.
Code:
backpacking list people
sacks
big backpack group
small backpack solo
cooking
stove
utensils
small pans solo
big pans group
My actual backpacking list is much longer than this and has 4-5 aspects that I use to filter including weight, people, number of days, etc. Tree filtering is key to keeping the structure but also being able to ignore/see the right items.
d