I have two lists:
1: 1) A abc 2) A def 3) A ghi 4) B jkl 5) B mno 6) C fzy 7) C xxa 2: 1) vsf 2) jkl 3) fzy 4) xxa 5) xyz 6) mno 7) def 8) abc
I am trying to match each of the continuous sequences from list
1–in this case there are two continuous sequences, A and B–with its corresponding sequence in list
2, with the following rules:
- the sequence in
2can be discontinuous
- the sequence in
2can run backwards or forwards
- if there is no complete match for
2, the longest partial match should be returned
So the matches in my sample set, with list 1 matched to list 2, are:
Sequence A: partial match 1 matches 8 2 matches 7 Sequence B: discontinuous match 4 matches 2 5 matches 4 Sequence C: continuous match 6 matches 3 7 matches 4
The data sets are in Excel, so I’m planning to use either VBA or C#.
I’m not sure why, but whenever I try to get my head around this problem, I always end up getting confused about how to find discontinuous matches and backward matches, especially if the match is a partial match. I’ve been trying to plan out mentally how to build the program but I keep getting stuck, I’m just having a hard time holding all the pieces in my head and getting started. Normally I’m pretty good at wrangling Excel data with VBA and C#, but the complex matching that’s needed here is making it unusually difficult for me and I’m having a great deal of trouble getting started on planning it out, much less programming it.
Can anyone help me break this problem down into simpler subtasks that need to get done, so that it will be simpler to write the application? I know that normally it’s best for me to show some code, but I’m having trouble even figuring out a pseudocode algorithm as a starting point in the design process.
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!