HI guys, a while ago I built an application to save strings to file https://www.daniweb.com/programming/software-development/threads/501460/application-to-save-wordsentences-to-file and I was wondering, what if I wanted to have the ability to search those strings, say I can choose a search key, like "bring" and search all the strings (and when I say strings I really mean sentences) for that key and when there is a match I display the whole sentence containing that key. I'm looking into sorting and searching algorithms now, but they all seems to be working with ints, like, the binary search, (the binary search could be a good aid …

Member Avatar
Member Avatar
+0 forum 62

Hi all, I'm learning python and hope someone can help me with a sort of tricky search/parse problem. I have a tab deliminited file like this: 2 1 863.8 300.2 0.0131 0.0759 0.1727 0.0879 1.5821 3 1 874.5 289.5 0.0574 0.1292 0.4447 0.2258 1.1846 3 2 874.5 289.5 0.0573 0.0527 1.0857 0.1684 1.1760 4 1 844.3 319.7 0.1306 1.3513 0.0967 1.3976 2.2659 4 2 849.2 314.8 0.1350 1.3332 0.1013 1.3773 1.9990 4 3 846.0 318.0 0.1546 1.4675 0.1053 1.5399 2.1172 2 :PAD_999) ... 1 :PAA_888) 3 :PAB_978) ... 1 :PAA_888) 4 :PCA_098) ... 1 :PAA_888) I would like to search …

Member Avatar
Member Avatar
+0 forum 7

The End.