instruction
stringlengths
35
29.1k
This is probably a silly thought, but suppose we have a computer that's programmed to perform an infinite sequence of calculations and suppose the $i^\text{th}$ calculation takes $1/2^i$ seconds to complete. Then this computer can do an infinite number of calculations in a finite amount of time. Why is this impossible...
The Interleave lower bound is a lower bound for the amount of operations any Binary Search Tree needs to make for a sequence of accesses. It is used in the construction of Tango Trees, and is based on Wilber's lower bound. The Interleave lower bound is proved by defining a Transition Point for every node $y$ in a stati...
My problem is due to the fact that I am manipulating a set of amounts that span over some intervals of time (start date/end date) and that are rounded to cents. I have to multiply each of them by some fraction (percentage), and I have to round the results to cents. Then I have to match the sum of what I calculated to t...
I am trying to enumerate all non-isomorphic graphs of size n and found this question: Enumerate all non-isomorphic graphs of a certain size The accepted answer describes a method to do this: Assume we know all non-isomorphic graphs of size n-1. Take each of them and add a new vertex in all possible ways. Then for all t...
$f(n)=f(n-\sqrt{n})$ I believe $f(n)\in O(\sqrt{n})$ However I cannot seem to prove it, my intuition comes from the fact that we can remove $\sqrt{n}$ exactly $\sqrt{n}$ times, but if $n$ shrinks then does anything change?
When reference counting is used for automatic memory management (e.g. Objective C or Swift), it is well know that “loops” give problems. E.g. class Car { Engine engine; } class Engine { Car installedIn; } Swift (along with other systems) avoids this problem by allowing the reference from the car instance ...
I am reading about red-black trees in Introduction to Algorithms, Second Edition by Cormen. Pages 316, 317. I don't understand why we need to rotate the given tree. See (c) and (d) in the attached picture. The author says that the following properties of a red-black tree can be violated after a new node has been inser...
An AVL tree is one that satisfies the height-balance property which states that: For every position p of T, the heights of the children of p differ by at most 1. Below is an example AVL tree. However, I've highlighted a node whose child's height would imply that their difference is not at most 1. Can someone explain to...
I want to learn more computer science in theory and practice. However, I really don't know where to find more practical exercises in languages like Java or Python. I feel like the best way I could learn all the concepts and ideas is by coding on my own. I would thank very much for any suggestion of websites, books or s...
My teacher told us that when the ram runs out of space it will push a program in the cache, i argued that the program should go to the swap space in the hard drive, plus the memory cache cannot hold instructions because instructions and data have different access patterns, it can only hold data frequently accessed. So ...
create a grammer for {a^nb^m, n>0, m=2^n+1} itS unrestricted grammer. I tried to but couldnt understand. if you know the answer please breif it. coz i m new in this subject
Here's an example of what I'm talking about. Suppose I have a languages $$ L_{1} = \{a^ib^i \mid i>0\},\\ L_{2} = \{c^i \mid i>0\} $$ and $$ L_{1}L_{2} = \{a^ib^ic^i \mid i>0\} $$ Is it true that if $L_{1}$ is irregular and $L_{1}$ has no common symbols with $L_{2}$, then $L_{1}L_{2}$ is irregular? How would you prove...
In classifying the following formula's asymptotic complexity using master theorem, I have $a = 8$, $b = 4$, and $d = ?$ $T(n) = 8T(n/4) + n\sqrt n$ How do I handle $n\sqrt n$ in this case to get $d$ ?
Below is the code, class SibTreeNode extends TreeNode { protected Object item; protected SibTreeNode parent; protected SibTreeNode firstChild; protected SibTreeNode nextSibling; ..... } As per below diagram, I could not understand the purpose of parent member in every node. Why do we require parent member ...
I'm sorry I don't know the technical terminology for this. All I see in my notes is fixing a grammar. Can someone please help explain this? What exactly is this called?
I am reading the book by Arora and Barak, in which they try to prove there exists a langauge $U$ such that $P^{B} \neq U$. I completely understood the proof except one problem in the end, they use crucially the fact that a Polynomial Turing Machine will halt within steps $\frac{2^{n}}{10}$ My doubt is it is not necessa...
Is there any special algorithm of lowest complexity for finding 2nd largest element from a set of 4 elements?
Is there a linear time algorithm that, given a string of length n, tells if it is a sequence of non overlapping palindromes (each of even length, in a binary alphabet)?? I found algorithms that return the longest palindrome, but this does not apply since a string like "aabbaabb" should be accepted since it can be divid...
Design an $\epsilon$-test for the following property in the dense graph model: $G(V,E)$ is a union of three disjoint cliques. I've been sitting for a few hours and I don't have any idea of how to solve this one ... anyone has any ideas / leads? I have tried to pick the vertices randomly and then conclude from the gra...
I proposed this method of converting a two's complement binary number to decimal to my professor and he said it was wrong. Some older guy in the class just shook his head at me and gave me a condescending stare. I'm willing to admit I'm wrong when I'm wrong but I can't find a case where it doesn't work. Example Take a ...
First let me clarify what I mean by a number of things. A language is a decidable set of natural numbers which encode functions from natural numbers to natural numbers $ \mathbb{N} \to \mathbb{N}$. A language is said to be total if it only encodes total functions from naturals to naturals. A language is turing complete...
I think this is implied in this paper by Aaronson (http://www.scottaaronson.com/papers/bqpph.pdf) but I am not sure. Begin with $NP \subseteq BQP$ (*) $\Sigma_{2}^{P} = NP^{NP} \subseteq BQP^{BQP} = BQP$ $\Sigma_{i+1}^{P} = NP^{\Sigma_{i}^{P}} \subseteq BQP^{BQP} = BQP$ With this inductive step we have $PH \subseteq BQ...
I have the following language: T = {M | there exists w such that M accepts w within |w| steps} I am trying to prove that this language is not recursive and that it is recursive-enumerable. To prove that it is NOT recursive I considered the following steps: 1) Assume that it was recursive 2) Conside input w of infinit...
I am currently reading a couple of papers about event processing. In the context of ordering events, "2g-precedence" is frequently mentioned. I don't know what it is, and I cannot find much information about it. In this paper I was able to find a short explanation that is way over my head, though: [It is assumed] that...
Sorry in advance if this question sounds dumb... As far as I know, building an algorithm using dynamic programming works this way: express the problem as a recurrence relation; implement the recurrence relation either via memoization or via a bottom up approach. As far as I know, I have said everything about dynamic ...
I want to know exactly till which layer in the OSI model the 127.0.0.1 (loopback) packet goes till it is returned to the upper layer. I read some where it goes till data link layer. but as i was told data link layer cannot see the ip address then how data link layer decide that the packet has to be send "up" instead of...
I was on wikipedia on list of unsolved computer science problems and found this: Is public-key cryptography possible? I thought RSA encryption was a form of public-key cryptography? Why is this a problem?
I want to trace the shortest path between a set of points on 2D space. The points have integer coordinates and visually appear to follow a well-defined unique path, though they're disordered. The precondition is very simple: For each point there's always a set of nearby points within a narrow arc, and another (possibly...
How would one go about classifying the time complexity of Ackermann's function, and can we say that all primitive-recursive functions are asymptotically bounded by the complexity of the Ackermann function as an asymptotic upper bound? Edit: I want to make it clear that I am interested in the time complexity of computin...
I'm learning about using image registration to align two images, e.g., two photographs of the same scene taken from a slightly different location. What factors influence how well we can align the images? Does the distance to the objects in the image influence its effectiveness of alignment, and if so how? What about th...
Say I have a real valued convex function $f$ on the hypercube $[-1,1]^n$ and let $f'$ be its restriction on the discrete hypercube $\{-1,1\}^n$. Is there any $poly(n)$ algorithm that for any class of $f$ (and $f'$) can find the minima of it? Is there any relation known between the point where $f$ minimizes and the ve...
I have always considered strings scalar and the main reason for that is that in programming we treat string values a lot like primitive values. But this and this Wikipedia definitions, as far as I understand them, speak against the scalar nature of strings. In programming scalar types are often seen as the opposite of...
Let's say I have a database of freight orders. The job is to match freight carriers with customers who need their freight moved. I have the customer's information, the freight carrier's information, and all details related to the freight orders including date ordered, date shipped, the amount of money it took to hire...
I have tried to solve the following exercise but I got stuck while trying to find all the critical pairs. I have the following questions: How do I know which critical pair produced a new rule? How do I know I found all the critical pairs? Let $\Sigma= \left \{ \circ, i, e \right \}$ where $\circ$ is binary, $i$ is u...
On the Wikipedia for PEG it is claimed: Any PEG can be parsed in linear time by using a packrat parser, as described above. However, packrat parsers can't handle left recursion. You can eliminate any left recursion to create another grammar that recognizes the same language as the left-recursive one, however, those g...
So usually Sudoku is $9 \times 9$, but this question extends to $n^2 \times n^2$ puzzles with $n > 3$ as well. There are many polynomial time deduction rules that can make progress in finding a solution to a Sudoku puzzle. But then sometimes guessing values and following chains of conclusions might be required to elimi...
From Cornell Suppose we want to throw a party for a company whose organization chart is a binary tree. Each employee has an associated fun value, and we want the set of invited employees to have the maximum total fun, which is the sum of the fun values of the invited employees. However, no one has fun if some...
I'm reading up on graph theory using Diestel's book. Right on the outset I got confused though over proposition 1.3.1 on page 8 which reads: Proposition 1.3.1. Every graph G contains a path of length $\delta(G)$ and a cycle of length at least $\delta(G)+1$ (provided that $\delta(G) \ge 2$). Following the proof I can ...
From both my own exploration of Google Deep Dream using Dreamify for IOS, and from Google Image results on the topic. I've come to 3 conclusions about the networks understanding of images that seem too common to be coincidences. I would like to know if these are recognised as consequences of the approach, or otherwise ...
I have two datasets, one of animal migration patterns (collected over the course of a couple years) that consists of many points on an x, y plane (latitude, longitude), and the other of ocean surface temperatures (also a set of lat, long points). What kind of neural network can be used, if any, to see some pattern, or ...
Let L be a language over Σ i.e., $L\subseteq Σ^∗$. Suppose L satisfies the > two conditions given below. L is in NP and for every n, there is exactly one string of length n that belongs to L. Let $L^c$ be the complement of L over $Σ^∗$. Show that $L^c$ is also in NP. My attempt: If L is a language in NP then L ...
for the past few days I've been studying Binary Indexed Tree (aka. Fenwick tree) data structure. I understand the basic form of BIT (point update, range query), and I see the intuition behind it, but when it comes to range update - point query BIT I don't see the intuition behind it. Let me be more specific: let tree ...
I had taken a course long ago on complexity theory. I only remember basic things, so I am reading "Introduction to the Theory of Computation by Michael Sipser". The book in its first chapter introduces DFA and NFA. If we are given a DFA $D$ where $\sum=\{0,1\}$ ( the alphabets ), then how difficult is the problem of ...
I was preparing a presentation in work on GPON & other optical network technologies using documentation provided by a supplier, and the claim it made was "GPON networks have a capacity of up to 100Tbps". Instantly that looked odd to me as I know the throughput of the most advanced version of InfiniBand only goes up to ...
The following example was given in an online lecture I was watching. A phone directory is 1000 pages long, and we have to find the name "Zurich Smith". The algorithm is as follows: Split the phone directory into half. If the name is in the first half, get rid of the second half; and if the name is in the second half,...
The Product Matching problem is defined as follows: Input: Text T=t0,...,tn and pattern P=p0,...,pm over alphabet Σ=N . Output : All of the i places in the text where exists ci which holds ti+j = ci * pj for every j=0,...,m For example: T= 2,3,9,12,1,8 P = 1,3,4 so in index 1 there is a match for ci=3 because: 1*3 = ...
I know that regular languages are those that can be described by regular expressions. For the language {0,1}*, is the corresponding regular expression (0∪1)* ? If so, does replacing braces with parentheses and commas with union always work when converting from regular language to regular expression?
A well-known approach to eliminate the possibility of a deadlock when accessing exclusive ressources is enforcing a partial (or total) order in which the ressources may be requested. Which publication initially introduced this method?
My professor recently mentioned that the average depth of the nodes in a binary search tree will be $O(log(n))$ where $n$ is the amount of nodes in the tree. I ended up drawing out a bunch of binary search trees and I don't think I am understanding the concept correctly. For example, if $n=4$ the tree is either going t...
If not, is there a decision procedure that successfully classifies any polynomial time algorithm as poly-time within a time polynomially bounded by the length of the input algorithm?
What is the set $$L_R = \{w\#y\space|\space R(w,y)\}$$ Specifically what kind of conditional is $R(w,y)$? Also what's the purpose of $\#$? This comes from page 2 of the Clay paper on P vs NP: http://www.claymath.org/sites/default/files/pvsnp.pdf
I was reading the chapter of van Emde Boas in CLRS (page 547 section 20.3 3rd edition) and it says: Furthermore, the element stored in min does not appear in any of the recursive $vEB( \sqrt[\downarrow]{u})$ trees that the cluster array points to. The elements stored in a $vEB(u)$ tree V, therefore, are V.min plus all...
I've been reading Sedgewick's intro to algorithms book, and he says that the reverse postorder of a digraph's reverse is not the same as the postorder of the digraph, however in both cases it seems that we get the reverse of topological order, so at first I thought that it's the same, but then I looked on his website a...
What is the evidence that P could equal NP? I guess this is the same as asking: If it's known that $P \subseteq NP$ (depending on standard), then why is this not enough? Why assume that P could equal NP?
I am reading a book about Neural Networks, that explains the backpropagation algorithm. It explains that the error function is the sum of error of all inputs, and that the algorithm minimizes this sum, which makes perfect sense to me, but than in goes on stating that to achieve that the gradient is calculated for each ...
The Clay paper gives a short proof on this in page 2: http://www.claymath.org/sites/default/files/pvsnp.pdf However, Where does it come from that these are inclusive sets and not separate? Or that $|P| ≤ |NP|$?
A verifier for a language A is an algorithm V, where $$A = \{w \mid V \text{ accepts $\langle w,c \rangle$ for some string $c$}\}$$ ($c$ is called a certificate or proof) What's the definition of $\langle , \rangle$ here?
Heapsort(A) 1 BUILD_MAX_HEAP(A) 2 for i=A.length downto 2 3 exchange A[1] with A[i] 4 A.heapsize=A.heapsize-1 5 MAX_HEAPIFY(A,1) In the book on algorithms by CLRS the running time of this algorithm is given to be $O(n\lg n)$ as the for loop is executed $n-1$ times and each call of MAX_HEAPIFY takes $O(\lg n)$...
I have been studying the Selective Background Updating in Running Gaussian Average Method, as discussed in the Wikipedia (the Variant method). The details of the algorithm, as I understand, is as follows: For each pixel, at initialization $(t=0)$, set $\mu_0=I_0$ (the initial intensity of the pixel), and $\sigma^2_t=c$...
Quantum computers are going to have enormous number of operations per second (in some situations exponentially more than classic computers). Does it also hold for memory size? Are QC going to have exponentially increased memory?
There are given $n$ balls. Their indexes: $\{1,...,n\}$. Initially all of them are painted in $green$. (other possible color in my problem is $red$). It is possible to paint interval of balls in color $red$ or $green$, for example $paint([a,b], green)$ - ball in given interval will be paint in green. What's more, the...
The problem is the following: Write the recursive definition for the set of all Strings Q over the alphabet {a, b} (i.e. the set of strings consisting of a's and b', for example a, baba, abbbabababba...) I somewhat get the gist of what recursion definitions consist of, but this one has gotten me stumped a little bit, s...
Suppose that we're given $n$ integers $c_1, c_2, \dots, c_n$. We want to know if there is any assignment of $+$ and $-$ signs such that $$ \pm c_1 \pm c_2 \dots \pm c_n = 0. $$ Does anyone know of a polynomial-time way to do this? Since there are $n$ integers, there are $2^n$ assignments of signs to consider, which...
In a sliding window protocol, if we use the maximum possible capacity of the channel as the size of the sliding window, efficiency will be theoretically 100%. What is the logic behind not doing this? My guess is that this is done for throttling. Are there any other reasons? EDIT: After reading the answer by bakuriu, I ...
What does it mean exactly a "uniform shuffle" algorithm ? Is this method considered a uniform shuffle ? public void shuffle(Comparable[] a) { int n = a.length; int k, j; for (int i = 0; i < n; i++) { k = StdRandom.uniform(n); // k in [0, n-1] j = StdRandom.uniform(n); // j in [0, n-1] ...
Implement f(a, b, c, d) = Σ m(3, 4, 5, 6, 7, 11, 15) as a 2-level gate circuit (a) Using OR gates and NOR gates. (b) Using NOR gates only. I have found that F=ab+d using Karnaugh map. I have also been able to construct the logic expression using OR gates and NOR gates as in part a of the question. Can you please ...
Many text books state that for a binary floating point representation in a computer byte, that if the mantissa is normalised, then a positive number must start with 01 from the left or a negative number with 10 from the left.This is nothing to do with IEEE standard but a common statement in English A level computing b...
From low OS-level function calls, to memory allocated to an application, all will primarily take a stack to perform LIFO operations. Why don't we use queues and FIFO operations? It's just a matter of moving pointers anyway.
If you have byte addressable memory, does it matter if you have a 32 bit or 64 bit databus for the range of the memory addresses for the words of the memory? E.g. : Assume a 32-bit word. If you have a processor connected to a byte addressable $2^{32}$ byte memory, Would the address of the lowest word be 0 and the addr...
In "TILING SIMPLY CONNECTED REGIONS WITH RECTANGLES" by Igor Pak and Jed Yang, they show there is a set of "no more than $10^6$ rectangles" such that the problem of tiling an arbitrary simply connected region with these rectangle shapes is NP-complete. However the number of rectangle shapes $10^6$ seems pretty extreme....
I see the two used interchangeably. Is one the subset of the other or are they both the same thing?
I am studying cryptography and having some trouble with the PRFs How do I show that $f_{k}(x) =x+k^2$ mod $2^n$ is not a Psuedo Random function? I know that I need to show that the distignuisher can tell this is not random with a better then $\frac{1}{2}$ probability but how would it do that? (I don't just want an al...
A simple counting argument shows most strings can't be compressed to shorter strings. But, compression is usually defined using Kolmogorov complexity. A string is compressible if its Kolmogorov complexity is less than its length, $K(s) < |s|$. The Kolmogorov complexity of a string is defined as the size of the smallest...
I am trying to build models of consumer behavior (especially investigating the impact of advertising on purchase decisions) using multi agent systems but I wonder are there already available some open source models? I checked available models in the model libraries of the most popular MAS simulation tools (NetLogo, Rep...
I did a research project in which I seek to move a car through zones from origin to destination. This allows for the formulation of a bipartite graph because only adjacent zones can be connected. Each edge has a non-negative weight of time. I look to find the shortest path between source and sink, given the weights and...
I have this problem: I'm building an integer linear program, which I'm going to give to an ILP solver. I have a binary variable Y which can be either 1 or 0 and an integer variable MONTH which takes integer values 1-12. I have to give restrictions such that Y = 1 if MONTH = 1, and Y = 0 otherwise. I don't know how to...
What is the difference between complexity theory and computability theory? Is there any overlap between the two or are they completely different? Or is one a subset of the other?
In Elementary Cellular Automata, rules can show one pattern, but i am wondering if there is something where a cellular automata structure can simulate another structure? Is there a category for this in Cellular Automata?
This was asked in the (very) recently concluded Hackerrank Worldcup. Paraphrased: Given a permutation $a$ of integers from $1$ to $N$, how can I minimize the number of inversions by a single swap of any two integers? An inversion is a pair of indices $(i, j)$ such that $i < j$ but $a[i] > a[j]$. I think that t...
The classic knapsack problem is maximize $P^T X$ subject to $W^T X\le M$ for $P, W\in \mathbb{R}^d$ and $M\in \mathbb{R}$ and $X\in \{0, 1\}^d$. Is there any research into algorithms that find the top $X_1, X_2, \cdots X_N$ such that $P_T X_1$, $P^T X_2, \cdots, P^T X_N$ are the top $N$ possible knapsack values subject...
I first constructed a symmetric matrix as the Laplacian operator, and its eigenvectors are a series of harmonics functions as expected. I programmed it and convinced myself. The matrix looks like: $$ \left(\begin{array}{ccc} 1& -1 & 0 & 0 & 0 \\ -1& 2 & -1 & 0 & 0 \\ 0& -1 & 2 & -1 & 0 \\ 0& 0 & -1 & 2 & -1 \\ 0& 0 & 0...
I'm working on a research about Elementary Cellular Automata (ECA), and i found a method to build a system that can solve mathematical equations by using a specific cellular automaton structure. The system is about encoding the equation into numbers and by applying some rules, these numbers are transferred to a Cellula...
I have a grid that shows the world and its coastlines. An excerpt from the area around the UK is shown here From an arbitrary origin point anywhere in the ocean, I want to find those coastline points that are in line of sight of the origin without having to cross another coastline point. For example, if the origin is ...
The proof for the $\Omega(n\log n)$ lower bound for calculating the convex hull by using order-type predicates that I have come across uses the fact that if there was possible to calculate the convex hull in time better than this, then we could do sorting using the same technique, but as it is known that sorting has an...
I know this is a very common question. But I have a different angle in my mind. I will just try to articulate it here. From what I know, every instruction that a CPU executes, is in machine language and all CPU can do is do some arithmetic operations thanks to ALU and to its transistors (if we go at hardware level). Ho...
I was wondering: is there an algorithm to decompose any regular expression, provided it doesn't use complementation, into one or more regular expressions which don't use Kleene star (only catenation and union). Right now I'm reading On the Decomposition of Finite Languages by A. Mateescu, A. Salomaa and S. Yu, but this...
This is just a question for fun and specifically for those who have read the reference pervasively. I have been reading the work of Knuth's The Art of Computer Programming and struggling and having a lot of fun with its exercises. I was very impressed that Fermat's Last Theorem had a difficulty of 45 in Knuth's difficu...
I am trying to put things in places on the use of Hamming Distance (HD) in error detection and correction in Computer Networks. I'm looking for correction/verification on the following: HD is a measure of how well the error-detection/correction can/did perform. It is not an error detection or correction method by its...
I was looking at the following wikipedia article on the RP complexity class: https://en.wikipedia.org/wiki/RP_(complexity) In its definition it states: If the correct answer is NO then it always returns NO If the correct answer is YES then it returns YES with a probability of 1/2 At the end of the introduction it say...
hi I'm having difficulty in Designing a DFA binary string with exactly 2 occurrences of 010?
I'm trying to figure out a variation to the knapsack problem. The major difference is all objects have a type. For an example we can call them type A, B, C, D, and E. In addition to this we have to have a specific amount of each type. For example get the most value in the knapsack as possible while using 1 item of ...
It is given graph. It isn't ordinary graph, it is ladder. We say that our ladder has order $n$, because of number of nodes. Look at picture: My problem is: Let's start DFS on node number $1$. How many different DFS tree exist? From my point of view I should count number of possible adjency lists. For example, for ...
The problem of finding a solution for functional equations can be defined as: Let $A_0, A_1, A_2, \dots, A_n, B_0, B_1, B_2, \dots, B_n, X$ be terms of the $\lambda$-calculus, where all terms are known except for $X$. Given a set of $N$ equations in the form $X A_n \to B_n$ (that is, $X$ applied to $A_n$ strongly norm...
I am reading an article on algorithms for parallel computing and came across the following sentence. What do they mean by a swap-with-memory instruction? Our algorithm provides reasonable latency in the absence of contention, requires only a constant amount of space per lock, and requires no hardware support other th...
Suppose $\varphi: X \rightarrow Y$ is a function between feature spaces that I want to model. I want to produce two easily computable functions $\phi_X: X \rightarrow \mathbb{R}^m$ and $\phi_Y: Y \rightarrow \mathbb{R}^n$ so the distance $|\phi_X(x) - \phi_X(x')|$ for $x, x'$ in $X$ is correlated as well as possible wi...
If I have a DFA with only one state that is not an accept state, it accepts only the empty set. I get confused when if the DFA of one state is an accept state. Does this mean it accepts everything? Or could you have it only accept "a" and not "b". I guess I don't understand if not having an arrow out implies there is a...
I come across this definition but it's not so clear for me ! An array is partially sorted if the number of inversions is less or equal a constant times the array length. if array length is N then (number of inversions) <= c*N, with c constant. For me c should be <= 1 is this what they meant ? For more context : i...
Is there any possibility of improvement in the result of count-min-sketch algorithm if we will use Map Reduce approach? Improvement in performance can be in terms of accuracy, time complexity or the work done needed.
How does one compute the simplified form of a rational function where the coefficients of the polynomial are floating point numbers (real, though I expect using complex numbers would be the same). Wikipedia says it is possible using SVD, but I'm unsure about how to represent the polynomial so as to do use this.
I am currently working on an integer lattice problem, called the "most similar vector problem," and wondering if can be solved correctly by a simple "zig-zagging" algorithm. Given a real vector $u \in \mathbb{R}^n$, the most similar vector problem is to find a discrete vector $v$ from a bounded integer lattice $L \in \...