Skip to main content
QUICK REVIEW

[Paper Review] Randomized vs. Deterministic Separation in Time-Space Tradeoffs of Multi-Output Functions

Amit Chakrabarti, Yining Chen|arXiv (Cornell University)|Dec 4, 2017
Complexity and Algorithms in GraphsComputer Science21 references3 citations
TL;DR

This paper establishes tight time-space tradeoff lower bounds for solving the Memory game (a solitaire card-matching game) under space constraints. It proves that deterministic strategies require ST = Ω(n² log n) and randomized strategies require ST² = Ω(n³), using branching program modeling and novel probabilistic extensions of classical counting arguments, with implications for space-bounded algorithms in graph matching problems.

ABSTRACT

A single-player game of Memory is played with $n$ distinct pairs of cards, with the cards in each pair bearing identical pictures. The cards are laid face-down. A move consists of revealing two cards, chosen adaptively. If these cards match, i.e., they bear the same picture, they are removed from play; otherwise, they are turned back to face down. The object of the game is to clear all cards while minimizing the number of moves. Past works have thoroughly studied the expected number of moves required, assuming optimal play by a player has that has perfect memory. In this work, we study the Memory game in a space-bounded setting. We prove two time-space tradeoff lower bounds on algorithms (strategies for the player) that clear all cards in $T$ moves while using at most $S$ bits of memory. First, in a simple model where the pictures on the cards may only be compared for equality, we prove that $ST = Ω(n^2 \log n)$. This is tight: it is easy to achieve $ST = O(n^2 \log n)$ essentially everywhere on this tradeoff curve. Second, in a more general model that allows arbitrary computations, we prove that $ST^2 = Ω(n^3)$. We prove this latter tradeoff by modeling strategies as branching programs and extending a classic counting argument of Borodin and Cook with a novel probabilistic argument. We conjecture that the stronger tradeoff $ST = \widetildeΩ(n^2)$ in fact holds even in this general model.

Motivation & Objective

  • To understand the minimum number of card flips required to solve the Memory game when the player has limited memory (S bits).
  • To establish fundamental time-space tradeoff lower bounds for both deterministic and randomized strategies in a space-bounded setting.
  • To model player strategies as branching programs and extend classical counting arguments to derive new lower bounds.
  • To investigate the computational complexity of discovering a perfect matching in a graph with limited memory, using the Memory game as a simplified model.
  • To explore the feasibility of stronger lower bounds, such as ST = eΩ(n²), even in general computational models allowing arbitrary operations.

Proposed method

  • Model the Memory game strategy as a branching program (BP) with 2n input variables (one per card), where each node queries a card and branches based on the outcome.
  • Use a modified version of Borodin and Cook's classic counting argument to bound the number of inputs a BP can correctly process within time T and space S.
  • Introduce a novel probabilistic argument to analyze the likelihood of correctly identifying matching pairs, especially in the presence of unknown or unqueried variables.
  • Divide the branching program into stages of length r = ⌊(2/e)√(nS)⌋ to analyze the distribution of correct outputs across stages and derive contradiction-based bounds.
  • Apply Yao's Lemma to convert randomized Las Vegas algorithms into Monte Carlo algorithms, enabling the use of deterministic lower bound techniques.
  • Use Markov's Inequality to bound the error probability of truncated algorithms, ensuring high success probability for the derived lower bounds.

Experimental results

Research questions

  • RQ1What is the minimum number of card flips required to solve the Memory game using only S bits of memory?
  • RQ2How do time-space tradeoffs differ between deterministic and randomized strategies in the Memory game?
  • RQ3Can the classical counting argument of Borodin and Cook be extended to handle randomized strategies and arbitrary computations?
  • RQ4Is it possible to achieve a stronger lower bound of ST = eΩ(n²) even in a general computational model allowing arbitrary operations on card values?
  • RQ5To what extent do the results on the Memory game inform time-space tradeoffs for finding large matchings in graphs under space constraints?

Key findings

  • In the comparison-based model (only equality comparisons allowed), any (S,T)-strategy must satisfy ST = Ω(n² log n), which is tight as O(n² log n) is achievable.
  • In the general computational model allowing arbitrary operations on card values, every (S,T)-strategy must satisfy ST² = Ω(n³), establishing a strong tradeoff for randomized algorithms.
  • The lower bound ST² = Ω(n³) is derived by modeling strategies as branching programs and applying a novel probabilistic argument to bound the probability of correct output sequences.
  • The proof technique extends the classical Borodin-Cook counting argument by incorporating probabilistic reasoning about unqueried variables and their potential values.
  • The analysis shows that even randomized strategies cannot avoid a fundamental tradeoff, with expected time T satisfying T√S = Ω(n³/²) under space S.
  • The results suggest that ST = eΩ(n²) may hold even in the general model, though this remains a conjecture, indicating a potential gap between current bounds and the true complexity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.