New answers tagged searching
1
vote
Implementing an optimization algorithm in WL
I managed finally to make a faster and correct version for Jaya:
...
2
votes
How to find the nearest string to another string in a mixed array
testarray = {0, 0, 0, "apple", 0, 0, 0, "pear", 0, 0, 0, 0, 0, "pineapple"}
Extract positions of strings:
...
3
votes
How to find the nearest string to another string in a mixed array
Just for fun, another option is to write your own distance function
...
5
votes
Accepted
How to find the nearest string to another string in a mixed array
If you want to specify a string in advance and find the position of another string closest to the original, you could do something like this:
...
Top 50 recent answers are included
Related Tags
searching × 106list-manipulation × 18
string-manipulation × 11
pattern-matching × 9
performance-tuning × 8
text × 7
notebooks × 6
documentation × 6
files-and-directories × 5
array × 5
algorithm × 5
graphs-and-networks × 4
front-end × 4
data × 4
mathematical-optimization × 3
programming × 3
import × 3
filtering × 3
sorting × 3
web-access × 3
workbench × 3
webservices × 3
calculus-and-analysis × 2
functions × 2
matrix × 2