02-25-2011 11:16 AM
hello,
I really need some help here, I have a input string coming in and an array of words coming from the table. I need to be able to find the exact matching string and its longest subtring. For example if my input is washington, the match will be washington which is at #1 in the table and there 2 bustrings of Washington in the table, shington and ington. So then my program will report the longest substring; which is shington.
remember the program is reporting the exact match and the longest substring of the match.
Thank you,
Yaka.
02-25-2011 12:17 PM
02-25-2011 12:37 PM
@jcarmody wrote:
How's this?
I think you just did his homework. This question sounded like a typical homework assignment.
02-25-2011 12:51 PM
Thanks a lot. By the way I am not a student. I am working on testing wifi stuffs and need to generate some test definition files....
-Yaka
02-25-2011 12:52 PM
@Mark Yedinak wrote:
I think you just did his homework.
😞
I hope it's not the entire solution - the posted VI had a 2D array and I only used one. I worried enough that I put a passive-aggressive string in the array.
02-25-2011 12:57 PM - edited 02-25-2011 12:58 PM
@yaka wrote:
Thanks a lot. By the way I am not a student. [...]
🙂 Does my snippet help?
02-25-2011 12:57 PM
@yaka wrote:
Thanks a lot. By the way I am not a student. I am working on testing wifi stuffs and need to generate some test definition files....
-Yaka
For future reference you may want to state that in your original post. To be honest I didn't post a solution because I did get the impression this was a homework assignment. We do see that on a regular basis here on the forums.
I'm curious, what type of WiFi testing are you doing? Most of my testing is focused on networking and network protocols.
02-26-2011 10:21 PM
Sorry but I am interested into this subject.
What if I have to search for some strings for in a series of incoming string. for example I have "washington dallas seattle san jose" coming in and my table content "ington shington vancouver". How could I find ington and shington that are substrings of washington. Please my incoming string is a series of strings.
I am using substrings here but for the system I am building I am using a binary system for eg. 000011 11001 110001
Thanks,
agy
02-27-2011 09:17 AM
Agyna,
Can't you just buffer all your characters into one string and wait untill you have everything?
In your example it looks like not all data is in there : my table content "ington shington vancouver"
I think you're making it harder on yourself then needed. Where are you getting this data from?
Kind regards,
Bjorn
02-27-2011 10:40 AM
My data are just in the table where I have I bunch of substrings including ington, shington....
But I need to be able to detect those substring for each corresponding string input.
I am looping thru my input " washington dallas seattle....) so each time for example washington shows up, its substrings (ington and shington should be detected and send to output.
Please I need some help with this.
Thank you,
agy.