Questions tagged [search]
This tag is for questions about search algorithms, tools, and technologies.
393 questions
3 votes
0 answers
63 views
TextSearchField — search field for JTextArea
Here's a search field that I wrote for our project. What do you think? Shortcuts Ctrl+F Show the search field. Ctrl+F (when the ...
3 votes
2 answers
119 views
Optimize Working Live Search & Highlight Function
I've written a custom Live Search & Highlight function in vanilla JS. It is working and does what I expect it to. The issue is that the more items I add to the page content to search, the slower ...
2 votes
1 answer
108 views
Speed up searching for the lowest element that is not in the array
I try to solve this question: B. Informatics in MAC at Codeforces To solve it, I think I need to calculate the prefix and suffix array of MEX. I made observation that making only 1 subsegment will ...
3 votes
0 answers
131 views
Performs interpolation binary search over an array. If value found returns found and index else returns not found and insertion index
Performs interpolation binary search over an array sorted in ascending order. If value found returns found and index else returns not found, the insertion index is returned. Assumptions : data is ...
3 votes
1 answer
203 views
Incremental upper bound in sorted range
Since initial question Increasing binary search for mismatch in sorted range contained defects in code and can confuse the readers, here is the updated version of the question. Is the code below ...
2 votes
1 answer
142 views
Fast search for the longest repeating substrings in large text (Rev.2)
This is the second iteration of the Fast search for the longest repeating substrings in large text code review. Special thanks goes to G. Sliepen who conducted the first review. Functional ...
4 votes
1 answer
121 views
Local Search Engine in Rust
I made a simple search engine using the xkcd API in Rust which turned out better than I'd hoped for! I decided to use tf-idf as a way to rank results, which I feel like has some room for improvement. ...
1 vote
0 answers
96 views
Javascript basic search engine recipes
I have made a search engine for recipes. Requirements for this JS Project are as follow: Create a function called searchRecipes that takes all recipes and an ...