ArticleslgStudy

computer science

Orthogonal vectors problem

Orthogonal vectors problem is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Orthogonal vectors problem rather than just read about it. In short: In computational complexity theory, the Orthogonal Vectors (OV) problem is a fundamental problem that is used to prove conditional lower bounds under the assumption that the Strong Exponential Time Hypothesis (SETH) holds. OV is often used as an intermediate problem in fine grained reductions, transferring conditional hardness from SAT under the SETH.

Orthogonal vectors problem — main illustration
Orthogonal vectors problem — illustration

Key takeaways

  • Orthogonal vectors problem belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Orthogonal vectors problem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Orthogonal vectors problem from memory before moving on to harder problems.

Reference excerpt

In computational complexity theory, the Orthogonal Vectors (OV) problem is a fundamental problem that is used to prove conditional lower bounds under the assumption that the Strong Exponential Time Hypothesis (SETH) holds. OV is often used as an intermediate problem in fine grained reductions, transferring conditional hardness from SAT under the SETH. The problem takes as input two sets of binary vectors (vectors in which every entry is either 0 or 1) and outputs whether or not there exists at least one pair of orthogonal vectors, one from each set. By the definition of orthogonality, this is equivalent to asking if the dot product of the two vectors is zero.

Problem definition The input to the Orthogonal Vectors problem are two sets of n binary vectors, each of some dimension d: A,B⊆{0,1}d,|A|=|B|=n. The Orthogonal Vectors problem asks whether there exists at least one pair of orthogonal vectors, one from each set. More formally, OV returns TRUE if and only if there exists some vectors a∈A and b∈B such that: a⋅b=∑i=1daibi=0.

Example

Consider the following input sets: A={(1,0,1),(1,1,0)},B={(0,1,0),(1,1,1)}. For all vectors a∈A and b∈B, we check if the pair of vectors a and b are orthogonal by evaluating their dot products a⋅b:

(1,0,1)⋅(0,1,0)=𝟎 (1,0,1)⋅(1,1,1)=2 (1,1,0)⋅(0,1,0)=1 (1,1,0)⋅(1,1,1)=2 There exists one pair of orthogonal vectors, so the solution for these particular input sets is TRUE.

Known algorithms The straightforward algorithm for solving OV checks all pairs of vectors from the two input sets. For each pair (a,b)∈A×B, compute the dot product of a⋅b in O(d) time where d is the dimension of the vectors. This algorithm yields a running time of O(n2d), with the quadradic dependence on n dominating the runtime. However, under certain constraints on the dimension d, faster algorithms are known.

As the dimension d increases, the performance of all of these algorithms excluding the pairwise dot product algorithm deteriorates. This is due to the bit-parallel and combinatorial techniques used by these algorithms become ineffective as the dimensionality of the vectors increases. Particularly, for sufficiently large d, all known algorithms require near quadratic time in the number of vectors. There is no known algorithm running in time O(n2−ϵ) for any constant ϵ>0 and for all values of d=clog⁡n where c≥1. The existence of such an algorithm would refute the Orthogonal Vectors Conjecture.

The Orthogonal Vectors Conjecture (OVC) The Orthogonal Vectors Conjecture (OVC) formalizes the previously mentioned hardness of the OV problem. OVC states that for vectors of dimension d=clog⁡n for any constant c≥1, OV cannot be solved in O(n2−ϵ) for any constant ϵ>0. The conjecture is widely believed to be true and is closely related to the Strong Exponential Time Hypothesis.

Connection to SETH The connection between Orthogonal vectors and SETH stems from reductions that encode instances of the Boolean satisfiability problem as sets of vectors. At a high level, a Boolean formula can be written as two sets of binary vectors such that a satisfying assignment exists if and only if there exists a pair of orthogonal vectors. The variables of the Boolean formula are partitioned into two groups and partial assignments are encoded to each group as vectors. The coordinates of these vectors represent whether a partial assignment satisfies particular clauses in the formula. Two vectors are orthogonal if and only if the corresponding partial assignments are consistent and satisfy all clauses As a result of this reduction, the Orthogonal Vectors problem is strongly connected to the Strong Exponential Time Hypothesis (SETH). Specifically, if the problem on n vectors can be solved in time O(n2−ϵ) for some constant ϵ>0, then SAT could be solved in time 2(1−δ)n for some δ>0, contradicting SETH.

Role in fine-grained complexity The Orthogonal Vectors problem serves as a source of hardness in fine-grained complexity. Instead of reducing a problem directly from SAT, many problems are shown to be hard by reducing from OV, which establishes lower bounds under the assumption that SETH holds. Thus, proving that a problem is at least as hard as OV implies that a faster algorithm for that problem would contradict SETH, making the existence of one impossible if SETH holds.

References

Illustrations

Orthogonal vectors problem: Simple SAT to OV Reduction Visualization
Simple SAT to OV Reduction Visualization

Worked examples

Example 1 — a first encounter with Orthogonal vectors problem

Start with the simplest possible case. Write down what Orthogonal vectors problem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Orthogonal vectors problem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Orthogonal vectors problem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Orthogonal vectors problem

In research
Orthogonal vectors problem appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Orthogonal vectors problem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Orthogonal vectors problem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computability theory, Computational complexity theory, Problems in computer science, so understanding it makes those chapters shorter.
In everyday life
Look for Orthogonal vectors problem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Orthogonal vectors problem” →

How to study Orthogonal vectors problem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Orthogonal vectors problem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Orthogonal vectors problem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Orthogonal vectors problem in simple terms?

In computational complexity theory, the Orthogonal Vectors (OV) problem is a fundamental problem that is used to prove conditional lower bounds under the assumption that the Strong Exponential Time Hypothesis (SETH) holds. OV is often used as an intermediate problem in fine grained reductions, tran…

Why does Orthogonal vectors problem matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Orthogonal vectors problem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Orthogonal vectors problem.

Tags

  • Computability theory
  • Computational complexity theory
  • Problems in computer science
  • Theoretical computer science

Keep exploring