Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a vector of words like {high table, minimum, middle, increase} and {money, high table, source, increase, middle}. How do I combine them into one? Is there a difference between linguistic solutions and solutions close to mathematics?

What I have tried:

My first attempts were {high table (2), minimum, middle (2), increase (2), money, source} and {high table, minimum, middle, increase, money, source} and {minimum, source, money}, sorted by first letter and put into a table. But nothing seems right and useful. Any ideas?
Posted
Comments
Garth J Lancaster 25-Aug-20 3:46am    
You haven't send 'to what end' you wish to combine the two vectors - what will you do with the result / what is it to be used for ?

The way you indicate above almost seems like you need a hash -> count of occurrences

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900