Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f5e0bf

Browse files
authored
Remove latex in comments.
1 parentd2a3810 commit2f5e0bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/num_methods/binary_search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ with queries: $X = [8,11,4,5]$. We can use binary search for each query sequenti
164164
We generally process this table by columns (queries), but notice that in each row we often repeat access to certain values of our array. To limit access to the values, we can process the table by rows (steps). This does not make huge difference in our small example problem (as we can access all elements in $\mathcal{O}(1)$), but in more complex problems, where computing these values is more complicated, this might be essential to solve these problems efficiently. Moreover, note that we can arbitrarily choose the order in which we answer questions in a single row. Let us look at the code implementing this approach.
165165

166166
```{.cpp file=parallel-binary-search}
167-
// Computes the index of the largest value in table A less than or equal to$X_i$ for all$i$.
167+
// Computes the index of the largest value in table A less than or equal to X_i for alli.
168168
vector<int>ParallelBinarySearch(vector<int>& A, vector<int>& X) {
169169
int N = A.size();
170170
int M = X.size();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp