String Search on a Treeview
-
I'm tring to think of a fast way to perform a string search on a treeview. I'm reading in a hierarical CSV file and inserting it into a tree for easy viewing. For some elements of my code I need to find "needle" in this giant haystack. I've thought of extending the treeview to integrate with a ternary search tree of some sort, but that seems really complicated to me. Linear searches of the tree seem like a really bad idea considering my CSV is in upwards of 9,000 lines. It's a lot of data so I need a fast way to search. I'd prefer to have an array with the keys indexed as unique strings. Good/bad idea? I'm pretty new to c# and this is proving much more difficult than I thought it would. Any suggestions or examples would be greatly appreciated!!
-
I'm tring to think of a fast way to perform a string search on a treeview. I'm reading in a hierarical CSV file and inserting it into a tree for easy viewing. For some elements of my code I need to find "needle" in this giant haystack. I've thought of extending the treeview to integrate with a ternary search tree of some sort, but that seems really complicated to me. Linear searches of the tree seem like a really bad idea considering my CSV is in upwards of 9,000 lines. It's a lot of data so I need a fast way to search. I'd prefer to have an array with the keys indexed as unique strings. Good/bad idea? I'm pretty new to c# and this is proving much more difficult than I thought it would. Any suggestions or examples would be greatly appreciated!!
I found this on the msgboard - any other suggestions or is there a faster way? http://www.codeproject.com/script/comments/forums.asp?msg=1164592&forumid=1649&ForumID=1649&XtraIDs=1649&searchkw=treeview&sd=6/17/2002&ed=9/15/2005&Page=2#xx1164592xx
-
I found this on the msgboard - any other suggestions or is there a faster way? http://www.codeproject.com/script/comments/forums.asp?msg=1164592&forumid=1649&ForumID=1649&XtraIDs=1649&searchkw=treeview&sd=6/17/2002&ed=9/15/2005&Page=2#xx1164592xx
have a look on the url's below http://www.dotnet247.com/247reference/msgs/32/161524.aspx http://support.microsoft.com/default.aspx?scid=KB;EN-US;311318 Live Life King Size Alomgir Miah