Questions tagged [lookup]
A lookup (table) is an array that replaces run-time computation with a simpler array indexing operation. The savings in terms of processing time can be significant, since retrieving a value from memory is often faster than undergoing an 'expensive' computation or input/output operation. Over time the definition has become less strict, any kind of searching with a key value can be considered a lookup.
54
questions
2
votes
1
answer
157
views
Optimize the FFT calculation in C++ without creating even/odd arrays
Here is my code:
...
1
vote
3
answers
2k
views
Any bettter way to achieve this lookup table?
What I need:
I need a lookup table. Once the keywords are all found, then the value of the std::unordered_map is returned.And I don't care about the sequence of the ...
0
votes
1
answer
69
views
importing excel data by matching and performing lookups
This code imports data from a separate sheet and matches it based on Column E's data, it does this for every cell then offsets to the next one (622*6) times. If there are any substitutions for vlookup ...
1
vote
0
answers
522
views
Get & change file names from folder
This was originally posted as a Stack Overflow answer.
Objective
Import all filenames from a folder & change the filename using a mapping table.
Challenge
As described in the original posting, ...
11
votes
5
answers
4k
views
Sine function calculated via look-up table and linear interpolation
I have been attempting to implement a function calculating values of the sine function.
I know that there are several similar threads regarding this topic but my goal was to try
to implement such ...
6
votes
1
answer
458
views
Rust Book: The Twelve Days of Christmas
In order to learn Rust I'm going through The Rust Book and did the implemented a program for the following exercise:
Print the lyrics to the Christmas carol “The Twelve Days of Christmas,” taking ...
3
votes
3
answers
245
views
Word frequencies from large body of scraped text
I have a file with word frequency logs from a very messy corpus of scraped Polish text that I am trying to clean to get accurate word frequencies. Since this is a big text file, I divided it into ...
6
votes
2
answers
54k
views
Lookup closest value in Pandas DataFrame
I have a DataFrame that contains the data shown below:
...
4
votes
1
answer
95
views
Naming initialization functions in a lookup table based implementation of integer logarithms
Background
(Feel free to skip; the help center just recommended adding background information :)
A few days ago, I was looking at some code which happened to use a flat array to store a complete ...
4
votes
3
answers
6k
views
Lookup table with fixed array
I implemented the following excercise:
Implement a lookup table with operations such as find(struct table*, const char*), ...
7
votes
4
answers
5k
views
Converting a query result into an key=>value pairs for a lookup table
My app has a number of lookup tables stored in a MySQL database that are used for various purposes such as a select element.
Unfortunately, the query results aren'...
2
votes
1
answer
550
views
Typescript: Recursion file-system lookup
Previously I asked a question to find the best practice of recursively running a function to retrieve all import/export statements of files in NodeJs here.
After some discussion I'm not satisfied yet,...
4
votes
2
answers
78
views
Lookups in list in C
I read about lookups in lists and I think that is what I did. I would like to compare it to a skip list, a binary search or a B+ tree.
...
3
votes
0
answers
130
views
FizzBuzz - A quartet of solutions
Since the FizzBuzz challenge is about developing ideas, I've added
a third test case for which I chose divisibility by 7 and its accompanying
tag "Go". This tag was purposely given a length other ...
2
votes
2
answers
74
views
Comparison of lookup methods
Background
(these are the bits technically not for review, but feel free to point out any minor points)
An Entity class can be identified by a name and at least ...