question stringlengths 50 2.46k | answer stringlengths 1 22.6k |
|---|---|
Let Z_n be a branching process with offspring distribution G(s). If the mean number of offspring is m = 1 and the variance is sigma^2, prove that the probability of non-extinction at time n behaves asymptotically as 2 / (n * sigma^2). Verify this using the Kolmogorov backward equation for generating functions. | # Branching Process at Criticality: Kolmogorov's Theorem
## Setup
Let $Z_n$ be a Galton-Watson branching process with offspring generating function
$$G(s) = \sum_{k=0}^\infty p_k s^k, \qquad |s| \le 1,$$
satisfying the **critical case**:
$$m = G'(1) = 1, \qquad \sigma^2 = G''(1) < \infty.$$
Let $F_n(s) = \mathbb{E}[... |
Consider the product space Omega^n with the product measure. Talagrand's inequality bounds the distance of a point to a subset A. Use this to prove the concentration of the distance to a convex set and apply it to show that the first eigenvalue of a random matrix with bounded entries concentrates tightly around its med... | # Talagrand's Inequality and Concentration for Random Matrices
## 1. Setup: Talagrand's Convex Distance Inequality
Let $\Omega^n$ be a product probability space with product measure $P = \mu_1 \otimes \cdots \otimes \mu_n$. For a point $x \in \Omega^n$ and a subset $A \subseteq \Omega^n$, define the **Talagrand conve... |
Prove Stein's Lemma: if X ~ N(mu, sigma^2), then E[g(X)(X-mu)] = sigma^2 * E[g'(X)]. Apply this lemma to calculate the fourth moment of a normal distribution and generalize the result to the multivariate case to find the covariance of quadratic forms. | # Stein's Lemma: Proof and Applications
## Part 1: Proof of Stein's Lemma
**Statement:** If $X \sim N(\mu, \sigma^2)$ and $g$ is differentiable with $E|g'(X)| < \infty$, then
$$E[g(X)(X-\mu)] = \sigma^2 E[g'(X)]$$
**Proof:**
The density of $X$ is:
$$f(x) = \frac{1}{\sqrt{2\pi\sigma^2}} \exp\left(-\frac{(x-\mu)^2}{2... |
Formulate the Monge-Kantorovich problem between two Gaussian distributions N(mu1, Sigma1) and N(mu2, Sigma2). Derive the explicit closed-form expression for the W2 (2-Wasserstein) distance and show that the optimal transport map is an affine transformation. | # Monge-Kantorovich Problem Between Gaussians
## 1. Setup
Let $\mu_1 = \mathcal{N}(m_1, \Sigma_1)$ and $\mu_2 = \mathcal{N}(m_2, \Sigma_2)$ be two Gaussian measures on $\mathbb{R}^d$, with $\Sigma_1, \Sigma_2 \succ 0$ symmetric positive definite matrices.
**Monge problem:** Find a map $T:\mathbb{R}^d\to\mathbb{R}^d$... |
For a Gaussian Unitary Ensemble (GUE), derive the Fredholm determinant representation of the distribution of the largest eigenvalue. Show how the scaling of the largest eigenvalue leads to the Tracy-Widom law and explain the connection to the Painleve II differential equation. | # Fredholm Determinant Representation for GUE Largest Eigenvalue
## 1. Setup: GUE Eigenvalue Distribution
The GUE consists of $N\times N$ Hermitian matrices $H$ with probability measure
$$
P(H)\,dH \propto \exp\left(-\frac{N}{2}\,\mathrm{Tr}\,H^2\right)dH.
$$
The joint eigenvalue density is
$$
p(\lambda_1,\ldots,\la... |
Consider a Brownian motion W_t under measure P. Define a new measure Q via the Radon-Nikodym derivative dQ/dP = exp(int(u_s dW_s) - 0.5 * int(u_s^2 ds)). Prove that under Q, the process B_t = W_t - int(u_s ds) is a Brownian motion. Use this to price a derivative in a Black-Scholes model where the drift is non-constant. | # Girsanov's Theorem: Proof and Application to Black-Scholes with Non-Constant Drift
## Part 1: Setup and Statement
Let $(\Omega, \mathcal{F}, \{\mathcal{F}_t\}, P)$ be a filtered probability space carrying a Brownian motion $W_t$. Let $u_t$ be an $\mathcal{F}_t$-adapted process satisfying the Novikov condition:
$$E^... |
Prove Sklar's Theorem for the multivariate case. Then, define the 'Upper Tail Dependence' coefficient for an Archimedean copula generated by a function phi. Calculate this coefficient for the Gumbel copula and demonstrate how it differs from the Gaussian copula even if they have the same Spearman's rho. | # Sklar's Theorem: Multivariate Case
## Statement
Let $H$ be an $n$-dimensional joint distribution function with univariate marginals $F_1, F_2, \ldots, F_n$. Then there exists an $n$-copula $C$ such that for all $\mathbf{x} = (x_1, \ldots, x_n) \in \bar{\mathbb{R}}^n$:
$$H(x_1, \ldots, x_n) = C(F_1(x_1), \ldots, F_... |
Prove the Glivenko-Cantelli theorem for a class of functions F using the concept of bracketing numbers N_[](epsilon, F, L1). Provide an example of a function class that is not a Donsker class despite having a finite VC-dimension, and explain why the CLT fails for the empirical process indexed by this class. | # Glivenko-Cantelli Theorem via Bracketing Numbers
## Setup and Definitions
Let $(X_1, X_2, \ldots)$ be i.i.d. random variables with distribution $P$ on a measurable space $(\mathcal{X}, \mathcal{A})$. Let $\mathcal{F}$ be a class of measurable functions $f: \mathcal{X} \to \mathbb{R}$. Define the empirical measure $... |
For a random walk S_n = sum(X_i) where X_i are i.i.d. and N is a stopping time with finite expectation, prove Wald's First Identity: E[S_N] = E[N]E[X_1]. Then, derive Wald's Second Identity and use it to find the expected time for a symmetric random walk to hit the boundaries {-a, b}. | # Wald's First Identity
**Setup:** Let $X_1, X_2, \ldots$ be i.i.d. random variables with $E|X_1| < \infty$, and let $N$ be a stopping time with respect to $(X_i)$ satisfying $E[N] < \infty$. Define $S_n = \sum_{i=1}^n X_i$.
**Claim:** $E[S_N] = E[N] \, E[X_1]$.
## Proof
Write
$$
S_N = \sum_{n=1}^{\infty} X_n \math... |
Define the stochastic approximation update x_{n+1} = x_n - a_n * (M(x_n) + epsilon_n). Under what conditions on the step sizes a_n and the noise epsilon_n does x_n converge almost surely to the root of M(x)? Prove the convergence using a Lyapunov function approach and martingales. | # Stochastic Approximation Convergence: Robbins-Monro Conditions
## Setup and Conditions
We consider the Robbins-Monro stochastic approximation scheme:
$$x_{n+1} = x_n - a_n(M(x_n) + \epsilon_n)$$
where $M: \mathbb{R}^d \to \mathbb{R}^d$ has a unique root $x^*$ (i.e., $M(x^*) = 0$).
**Conditions Required:**
**(A1)... |
Consider a hierarchical model where y_i ~ N(theta_i, sigma^2) and theta_i ~ N(mu, tau^2). Derive the posterior mean for theta_i and interpret the shrinkage factor tau^2 / (sigma^2 + tau^2). Prove that as the group-level variance tau^2 goes to infinity, the Bayesian estimator converges to the MLE. | ## Setup
We have the hierarchical model:
- **Data level:** $y_i \mid \theta_i \sim N(\theta_i, \sigma^2)$
- **Prior level:** $\theta_i \sim N(\mu, \tau^2)$
with $\sigma^2$ known, $\mu$ known (or estimated), $\tau^2$ known.
## Deriving the Posterior
By Bayes' rule, the posterior density is proportional to:
$$
p(\th... |
Prove Burke's Theorem for an M/M/1 queue in steady state: the departure process is a Poisson process with the same rate as the arrival process, and the number of customers in the system at time t is independent of the sequence of departures prior to t. Why does this fail for an M/G/1 queue? | # Burke's Theorem for M/M/1 Queues
## Setup
Consider an M/M/1 queue with arrival rate λ and service rate μ (λ < μ for stability). Let X(t) denote the number in system at time t, which is a birth-death Markov chain with steady-state distribution
$$\pi_n = (1-\rho)\rho^n, \quad \rho = \lambda/\mu.$$
**Claim (Burke's T... |
Prove Little's Law L = lambda * W using a sample-path argument. Then, extend this proof to a 'system with losses' where arrivals are turned away if the system is full. Show how the relationship is modified by the probability of blocking. | # Little's Law: Sample-Path Proof
## Setup
Consider a queueing system observed over a time interval $[0, T]$. Define:
- $A(t)$ = number of arrivals to the system in $[0, t]$
- $D(t)$ = number of departures from the system in $[0, t]$
- $L(t) = A(t) - D(t)$ = number of items in the system at time $t$
- $W_i$ = time t... |
State and prove the Pitman-Koopman-Darmois theorem regarding the existence of a sufficient statistic of fixed dimension. Explain why only members of the exponential family (under certain smoothness conditions) admit a sufficient statistic whose dimension does not grow with the sample size n. | # The Pitman–Koopman–Darmois Theorem
## Statement
Let $\{f(x;\theta): \theta \in \Theta\}$ be a family of probability densities (with respect to a common dominating measure $\mu$) on a sample space $\mathcal{X} \subseteq \mathbb{R}$, where $\Theta$ is an open subset of $\mathbb{R}^k$. Assume the **regularity conditio... |
Given two measures mu and nu on a measurable space, prove the existence and uniqueness of the Lebesgue decomposition nu = nu_abs + nu_sing. Derive the Radon-Nikodym derivative d(nu_abs)/d(mu) and explain its role in the change of measure for expectation. | # Lebesgue Decomposition Theorem and Radon-Nikodym Derivative
## Setup
Let $(\Omega, \mathcal{F})$ be a measurable space, and let $\mu, \nu$ be $\sigma$-finite measures on it. We want to show:
$$\nu = \nu_{ac} + \nu_s$$
where $\nu_{ac} \ll \mu$ (absolutely continuous) and $\nu_s \perp \mu$ (singular), and this deco... |
Analyze the mixing time of the Glauber dynamics for the 2D Ising model. Prove that at high temperatures, the mixing time is O(n log n), while below the critical temperature, it becomes exponential in the side length n due to the emergence of a bottleneck in the state space. | # Mixing Time of Glauber Dynamics for the 2D Ising Model
## Setup
Consider the Ising model on a box $\Lambda_n \subset \mathbb{Z}^2$ of side length $n$ (so $|\Lambda_n| = n^2$), with Hamiltonian
$$H(\sigma) = -\sum_{\langle x,y\rangle} \sigma_x \sigma_y - h\sum_x \sigma_x$$
at inverse temperature $\beta$, with Gibbs ... |
Extend the Glivenko-Cantelli theorem to distributions on separable metric spaces. Define the Prohorov metric and prove that the empirical measure converges to the true measure in the weak topology almost surely. What happens if the space is not separable? | # Extending Glivenko-Cantelli to Separable Metric Spaces
## 1. Setup and Motivation
The classical Glivenko-Cantelli theorem states that for i.i.d. real-valued random variables $X_1, \ldots, X_n$ with distribution $P$, the empirical distribution function converges uniformly to the true CDF almost surely:
$$\sup_x |F_n... |
Prove de Finetti's Theorem for a sequence of exchangeable Bernoulli random variables. Show that such a sequence is always a mixture of i.i.d. sequences and identify the mixing distribution as the limit of the empirical means. | # De Finetti's Theorem for Exchangeable Bernoulli Sequences
## Statement
Let $(X_1, X_2, \ldots)$ be an infinite sequence of exchangeable $\{0,1\}$-valued random variables, meaning that for every $n$ and every permutation $\pi$ of $\{1,\ldots,n\}$,
$$
(X_1,\ldots,X_n) \stackrel{d}{=} (X_{\pi(1)},\ldots,X_{\pi(n)}).
$... |
In a system of n particles and m bins, derive the probability of a specific configuration under Maxwell-Boltzmann, Bose-Einstein, and Fermi-Dirac statistics. Show how the occupancy distribution of the first bin differs in the limit as n, m go to infinity with n/m = lambda. | ## Setup
We have $n$ particles to be distributed among $m$ bins. A *configuration* is specified by an occupation vector $(n_1,\dots,n_m)$ with $n_1+\cdots+n_m=n$, $n_i\ge 0$ (or $n_i\in\{0,1\}$ for fermions). The three statistics differ in (i) whether particles are distinguishable, and (ii) which set of configurations... |
For an irreducible, aperiodic Markov chain on a countable state space with a stationary distribution pi, prove that the n-step transition probabilities converge to pi. Use the coupling method to provide an explicit bound on the rate of convergence in total variation distance. | # Convergence of Markov Chains via Coupling
## Setup
Let $(X_n)_{n \geq 0}$ be an irreducible, aperiodic Markov chain on a countable state space $S$ with transition matrix $P$, admitting a stationary distribution $\pi$. We prove:
$$\lim_{n\to\infty} \|P^n(x, \cdot) - \pi\|_{TV} = 0 \quad \text{for all } x \in S,$$
an... |
Prove that if a continuous random variable X has a distribution that is scale-invariant (i.e., the distribution of kX is the same for all k), then the first digit of X must follow Benford's Law. Show that a log-uniform distribution over many orders of magnitude satisfies this property. | # Scale Invariance and Benford's Law
## Part 1: Setting Up the Framework
**Definition (First Digit Distribution):** For a positive random variable $X$, define $D(X) \in \{1, 2, \ldots, 9\}$ as its leading (first significant) digit. We say $X$ satisfies **Benford's Law** if
$$P(D(X) = d) = \log_{10}\left(1 + \frac{1}{... |
Generalize the Cramér-Rao lower bound for an estimator T(X) whose bias is b(theta). Prove that Var(T) >= (1 + b'(theta))^2 / I(theta). Construct an example where a biased estimator has a lower mean squared error (MSE) than the best unbiased estimator by trading off variance for bias. | # Cramér-Rao Bound for Biased Estimators
## Setup and Proof
Let $X = (X_1, \ldots, X_n)$ have joint density $f(x;\theta)$, and let $T = T(X)$ be an estimator with
$$E_\theta[T] = \theta + b(\theta)$$
where $b(\theta)$ is the bias function. Assume the usual regularity conditions (smoothness, differentiation under the... |
Derive the 'optimal' proposal distribution q(x) that minimizes the variance of an importance sampling estimator for E[f(X)]. Show that this optimal q(x) is proportional to |f(x)|p(x) and discuss why this is generally unusable in practice, leading to the use of defensive sampling. | # Optimal Importance Sampling Proposal Distribution
## Setup
We want to estimate:
$$I = \mathbb{E}_p[f(X)] = \int f(x) p(x) \, dx$$
Using importance sampling with proposal $q(x)$, we rewrite:
$$I = \int f(x) \frac{p(x)}{q(x)} q(x) \, dx = \mathbb{E}_q\left[f(X) \frac{p(X)}{q(X)}\right]$$
The importance sampling est... |
Prove that the Benjamini-Hochberg procedure controls the False Discovery Rate at level alpha under the assumption of independent p-values. Explain how the procedure is modified (the BH-Y correction) to account for arbitrary dependency structures among the tests. | # The Benjamini-Hochberg (BH) Procedure and FDR Control
## Setup and Definitions
Consider testing $m$ null hypotheses $H_1, \ldots, H_m$, of which $m_0$ are truly null. Let $p_1, \ldots, p_m$ be the corresponding p-values, and let $p_{(1)} \leq p_{(2)} \leq \cdots \leq p_{(m)}$ be their order statistics.
**BH Proced... |
Let X_n be a martingale and T be a stopping time. Provide three distinct conditions under which E[X_T] = E[X_0]. Use the theorem to solve for the probability that a gambler, starting with a units and playing against an opponent with b units, reaches b before hitting 0 in a biased game. | # Optional Stopping Theorem: Three Sufficient Conditions
For a martingale $X_n$ and stopping time $T$, $E[X_T] = E[X_0]$ holds under any of these conditions:
**Condition 1: Bounded stopping time**
$T$ is bounded, i.e., there exists a constant $N$ such that $T \le N$ almost surely.
**Condition 2: Bounded increments +... |
Treating the space of probability distributions as a Riemannian manifold (the information manifold), show that the Fisher Information Matrix acts as the metric tensor. Prove that for a small displacement epsilon, the KL divergence is approximately half the squared distance induced by the Fisher metric. | # Fisher Information as a Riemannian Metric on Probability Distributions
## Setup
Consider a family of probability distributions $p(x;\theta)$ parameterized smoothly by $\theta = (\theta^1, \ldots, \theta^n) \in \Theta \subset \mathbb{R}^n$. This family forms a manifold $\mathcal{M}$, where each point corresponds to ... |
Prove that if a sequence of random variables X_n has moments that converge to the moments of a distribution X, and the moments of X satisfy the Carleman condition, then X_n converges in distribution to X. Give an example of a distribution (e.g., Log-normal) that is not uniquely determined by its moments. | # Convergence in Distribution via Moments and the Carleman Condition
## Setup and Statement
**Theorem:** Let $(X_n)_{n \geq 1}$ be a sequence of random variables such that all moments exist and, for every $k \in \mathbb{N}$,
$$
m_k^{(n)} := E[X_n^k] \longrightarrow m_k \quad \text{as } n \to \infty,
$$
where $(m_k)_{... |
Consider a hyperbolic triangle in the Poincare Disk model with vertices at the origin (0,0) and two points on the disk boundary such that the interior angles at those boundary points are zero. If the third vertex is placed such that the interior angle is alpha, derive the formula for the area of this triangle using the... | Area = π − α, so for α = π/4, Area = π − π/4 = **3π/4**. |
In the classic secretary problem with n candidates, prove that the optimal strategy is to reject the first n/e candidates and then pick the first one better than all previous ones. Show that the probability of picking the best candidate converges to 1/e as n approaches infinity. | # The Secretary Problem: Optimal Strategy and the 1/e Limit
## Problem Setup
We have $n$ candidates arriving in random order (uniformly over all $n!$ permutations). We can rank candidates only relative to those seen so far. After observing a candidate, we must immediately accept or reject them (no recall). Goal: maxi... |
For a standard Brownian motion W_t, prove that the lim sup as t goes to infinity of W_t / sqrt(2t log log t) is equal to 1 almost surely. Use this to describe the local fluctuations of the path near t = 0 using the time-inversion property. | # Law of the Iterated Logarithm for Brownian Motion
Let $(W_t)_{t\ge 0}$ be a standard Brownian motion. Define, for $t>e$,
$$
\phi(t) = \sqrt{2t\log\log t}.
$$
We prove
$$
\limsup_{t\to\infty}\frac{W_t}{\phi(t)} = 1 \qquad \text{a.s.}
$$
## Tools
**Reflection principle.** For $a>0$,
$$
\mathbb P\Big(\max_{0\le s\le ... |
Define a stationary Poisson Point Process in R^2. State and prove Slivnyak's Theorem, which relates the Palm distribution of the process to the original distribution. Use this to calculate the expected distance from a 'typical' point of the process to its nearest neighbor. | # Stationary Poisson Point Process in ℝ²
## Definition
A **stationary Poisson point process** Φ on ℝ² with intensity λ > 0 is a random countable subset of ℝ² (equivalently, a random measure Φ = Σᵢ δ_{xᵢ}) satisfying:
1. **Poisson counts**: For any bounded Borel set B ⊂ ℝ², the number of points Φ(B) is Poisson distri... |
State the Lindeberg condition for a sequence of independent (not necessarily i.i.d.) random variables. Prove that this condition is sufficient for the sum to converge in distribution to a normal. Provide a case where the Lyapunov condition is satisfied but the Lindeberg condition is not, or vice versa. | ## Setup and Statement of the Lindeberg Condition
Let $X_1, X_2, \dots$ be independent random variables with
$$E[X_k] = 0, \qquad \sigma_k^2 := \operatorname{Var}(X_k) < \infty,$$
(if the means are nonzero, replace $X_k$ by $X_k - E X_k$ throughout). Let
$$S_n = \sum_{k=1}^n X_k, \qquad s_n^2 = \sum_{k=1}^n \sigma_k^2... |
State and prove the Rao-Blackwell theorem. If we have an unbiased estimator T and a sufficient statistic S, show that E[T|S] is also unbiased and has a variance no greater than T. Discuss why this implies that the 'best' estimators must be functions of sufficient statistics. | # The Rao-Blackwell Theorem
## Statement
Let $X_1, \ldots, X_n$ be a random sample from a distribution with parameter $\theta$, and let $T = T(X_1, \ldots, X_n)$ be an unbiased estimator of $\theta$ (or more generally, of $g(\theta)$) with $E[T^2] < \infty$. Let $S = S(X_1, \ldots, X_n)$ be a **sufficient statistic**... |
Prove that each iteration of the EM algorithm increases the observed-data likelihood. Using the properties of the Q-function and the KL divergence between the latent posterior and the current estimate, show that the algorithm converges to a stationary point of the likelihood function. | # EM Algorithm: Monotonicity and Convergence
## Setup
Let $X$ denote observed data, $Z$ latent variables, and $\theta$ the parameters. The observed-data log-likelihood is:
$$\ell(\theta) = \log p(X \mid \theta) = \log \int p(X, Z \mid \theta) \, dZ$$
The **Q-function** (expected complete-data log-likelihood) is defi... |
A surface is constructed by taking a regular octagon and identifying opposite edges with a twist, such that the sequence of edges is a-b-c-d-a^-1-b^-1-c^-1-d^-1. Identify the genus of the resulting manifold and calculate its Euler characteristic. Based on this, determine if the surface is orientable and find the maximu... | ## Solution
**Setting up the identification**
Label the octagon vertices \(v_0,\dots,v_7\) with edges (in order) \(a,b,c,d,a^{-1},b^{-1},c^{-1},d^{-1}\).
Tracing the identifications forced by each edge pairing:
- \(a\): \(v_0\sim v_5,\; v_1\sim v_4\)
- \(b\): \(v_1\sim v_6,\; v_2\sim v_5\)
- \(c\): \(v_2\sim v_7,\;... |
Let X and Y be centered Gaussian vectors such that E[X_i^2] = E[Y_i^2] and E[X_i X_j] <= E[Y_i Y_j] for all i, j. Prove Slepian's Lemma, which states that P(max X_i > t) >= P(max Y_i > t). Apply this to compare the maximum of a stationary Gaussian process with a sequence of i.i.d. Gaussians. | # Slepian's Lemma: Proof and Application
## Setup
Let $X = (X_1, \ldots, X_n)$ and $Y = (Y_1, \ldots, Y_n)$ be centered Gaussian vectors with:
- $\text{Var}(X_i) = \text{Var}(Y_i)$ for all $i$
- $\text{Cov}(X_i, X_j) \leq \text{Cov}(Y_i, Y_j)$ for all $i \neq j$
We want to show: $P(\max_i X_i > t) \geq P(\max_i Y_i ... |
In a perspective drawing of a tiled floor, four points A, B, C, and D lie on a single receding line. If the Euclidean distances in the 2D image plane are AB=10, BC=5, and CD=3, and it is known that in the original 3D scene the segments represented equal lengths, find the location of the vanishing point on that line rel... | ## Setting Up Coordinates
Place point A at position 0 on the line, and let the image positions accumulate along the receding line:
- A = 0
- B = 10 (since AB = 10)
- C = 15 (since BC = 5)
- D = 18 (since CD = 3)
## Using the 3D Equal-Spacing Condition
In the real 3D scene, the four points are **equally spaced... |
Given an image representing a 2D Dirac Comb (an array of delta functions) arranged in a hexagonal lattice with lattice constant 'a', describe the visual structure of its 2D Fourier Transform. Specifically, identify the shape and orientation of the reciprocal lattice and calculate the distance between peaks in the frequ... | # 2D Fourier Transform of a Hexagonal Dirac Comb
## Visual Structure
The Fourier transform of a hexagonal lattice of delta functions is **itself a hexagonal lattice of delta functions** (the Fourier transform of a Dirac comb is another Dirac comb, and the hexagonal lattice is self-reciprocal in symmetry).
### Orient... |
Construct the Mycielskian graph M(G) of a 5-cycle graph C5. Provide the total number of vertices and edges in M(C5). Prove through logical deduction whether the chromatic number increases by exactly one compared to C5, and describe a visual layout of M(C5) that minimizes edge crossings (the crossing number). | # Mycielskian of C5: Construction and Analysis
## Construction
Given C5 with vertices {v0, v1, v2, v3, v4} and edges {v0v1, v1v2, v2v3, v3v4, v4v0}, the Mycielskian M(C5) is built as follows:
- **Original vertices**: v0, v1, v2, v3, v4 (keep all original edges)
- **Shadow vertices**: u0, u1, u2, u3, u4, one for each... |
On the graph of the elliptic curve y^2 = x^3 - 7x + 6, consider two points P=(1,0) and Q=(2,0). Visually, these points are roots on the x-axis. Using the chord-and-tangent method, determine the coordinates of the point R = P + Q. Explain the geometric interpretation of adding two points that lie on the x-axis for this ... | ## Setting Up the Problem
The curve is:
$$y^2 = x^3 - 7x + 6$$
Notice that the right-hand side factors nicely:
$$x^3 - 7x + 6 = (x-1)(x-2)(x-3)$$
So the cubic has three real roots: $x = 1, 2, 3$. This means the curve crosses the x-axis at exactly three points:
$$P = (1,0), \quad Q = (2,0), \quad \text{and a third po... |
Examine a tiling of the hyperbolic plane represented by the Schläfli symbol {7,3}. Calculate the interior angle of a single heptagon in this tiling and use the area formula for hyperbolic polygons to determine the area of one tile, assuming a Gaussian curvature of K=-1. | **Interior angle**
In {7,3}, three heptagons meet at each vertex, so the angles around a vertex sum to 2π:
3θ = 2π → θ = 2π/3 = 120°
**Area (Gauss–Bonnet for hyperbolic polygons, K = -1)**
For a hyperbolic n-gon with interior angles θᵢ and curvature K = -1:
Area = (n−2)π − Σθᵢ
For the heptagon (n = 7), each angle... |
A parallel beam of light rays reflects off the interior of a semicircular mirror of radius R. The reflected rays form a caustic curve known as a nephroid. Derive the parametric equation of this caustic curve and determine the coordinates of the cusp point relative to the center of the semicircle. | ## Setup
Consider a semicircular mirror of radius $R$ centered at the origin, with its reflecting (concave) surface facing a beam of parallel light rays traveling in the $-x$ direction (i.e., rays parallel to the horizontal axis, striking the inside of the circle $x^2+y^2=R^2$).
A ray strikes the mirror at point
$$... |
Consider a 3D Sierpinski Tetrahedron (Tetrix) starting with a regular tetrahedron of side length L. If the iteration is carried out to infinity, the volume approaches zero, but the Hausdorff dimension is non-integer. Calculate the exact Hausdorff dimension and the total surface area of the shape at the 4th iteration. | ## Hausdorff Dimension
The Sierpinski Tetrahedron is built by dividing a tetrahedron into 4 self-similar copies at half the linear scale (N = 4 self-similar pieces, scaling factor r = 1/2):
$$
D = \frac{\ln N}{\ln(1/r)} = \frac{\ln 4}{\ln 2} = 2
$$
So the Hausdorff dimension is **exactly 2**, even though the object ... |
Given a visual diagram of the 6_1 knot (Stevedore's knot), perform a series of Reidemeister moves to transform it into its simplest form. Then, calculate the Jones polynomial V(t) for this knot by resolving the crossings into A-smoothings and B-smoothings according to the Kauffman bracket polynomial rules. | # Simplifying and Analyzing the 6₁ Knot (Stevedore's Knot)
## Step 1: Reidemeister Moves to Simplify the Diagram
The 6₁ knot starts as a 6-crossing diagram. Through Reidemeister moves:
1. **Type I moves** eliminate any curls (crossings where a strand crosses itself immediately) — the standard 6₁ diagram typically ha... |
Calculate the volume of the Steinmetz solid formed by the intersection of three cylinders of radius r, whose axes are the x, y, and z axes. Provide the derivation using shell integration or Cavalieri's principle, and describe the symmetry of the resulting 24-faced curved solid. | # Volume of the Tricylinder (Steinmetz Solid)
## Setup
The tricylinder is the intersection of three cylinders of radius $r$ with axes along the $x$, $y$, and $z$ axes:
$$x^2 + y^2 \le r^2, \quad y^2 + z^2 \le r^2, \quad x^2 + z^2 \le r^2$$
## Derivation via Cavalieri's Principle (Cross-Sections)
**Slice horizontall... |
A curve is defined on a torus with major radius R and minor radius r as a constant-slope loxodrome that winds exactly 3 times around the major axis for every 1 time around the minor axis. Calculate the geodesic curvature of this curve at the point furthest from the axis of symmetry. Express the result in terms of R and... | ## Setting Up the Problem
**Torus parametrization:** Using standard coordinates with meridian angle θ (minor circle) and longitude angle φ (major circle):
$$x=(R+r\cos\theta)\cos\varphi,\quad y=(R+r\cos\theta)\sin\varphi,\quad z=r\sin\theta$$
with metric:
$$ds^2 = r^2\,d\theta^2 + (R+r\cos\theta)^2\,d\varphi^2$$
Th... |
While Pick's Theorem relates area, interior points, and boundary points for 2D lattice polygons, there is no direct analog for 3D volume (Reeve tetrahedra). Given a Reeve tetrahedron with vertices (0,0,0), (1,0,0), (0,1,0), and (1,1,z) where z is a positive integer, show visually how the volume changes while the number... | # Reeve Tetrahedra: Visualizing the Failure of Pick's Theorem in 3D
## Setting Up the Visualization
Let's examine the Reeve tetrahedron $T_z$ with vertices:
- $A = (0,0,0)$
- $B = (1,0,0)$
- $C = (0,1,0)$
- $D = (1,1,z)$
**Volume formula:**
$$V(T_z) = \frac{1}{6}\left|\det\begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 1 ... |
Consider the adjacency matrix of a Petersen graph. Calculate its eigenvalues and their multiplicities. Using this spectrum, determine if the graph is bipartite and calculate the number of spanning trees using the Matrix Tree Theorem. | # Petersen Graph Spectrum and Analysis
## Eigenvalues and Multiplicities
The Petersen graph is a strongly regular graph with parameters (10, 3, 0, 1) — 10 vertices, degree 3, adjacent vertices share 0 common neighbors, non-adjacent vertices share 1 common neighbor.
For a strongly regular graph, eigenvalues (other th... |
Analyze an image of a tiling with 'p6m' symmetry. Identify the fundamental region, the orders of the rotation centers, and the orientation of the reflection axes. If the tiling is perturbed by shifting every other row by a small epsilon, identify which new wallpaper group describes the resulting symmetry. | # p6m Wallpaper Group Analysis
## Fundamental Region
The fundamental domain of **p6m** is a **30-60-90 triangle**, which is 1/12 the area of the primary hexagonal unit cell. Twelve copies of this triangle (related by reflections and rotations) tile the plane and reconstruct the full hexagonal pattern.
## Rotation Cen... |
A Peaucellier-Lipkin linkage is used to convert circular motion into linear motion. If the long arms have length L and the short rhombic arms have length l, and the fixed pivot is at distance 'd' from the circle's center, prove geometrically why the output point traces a perfectly straight line and state the condition ... | # Peaucellier-Lipkin Linkage: Proof of Straight-Line Motion
## Setup and Definitions
The Peaucellier-Lipkin linkage consists of:
- A fixed pivot **O**
- Two long links of length **L**, connecting O to two points **P** and **Q**
- A rhombus **OPRQ**... actually, let me define the standard configuration precisely:
**S... |
The complex mapping f(z) = z + 1/z (the Joukowsky transform) is applied to a circle in the complex plane that passes through z=1 and contains z=-1 in its interior. Describe the shape of the resulting image (the Joukowsky airfoil) and calculate the angle of the cusp at the trailing edge. | # Joukowsky Airfoil Transformation
## The Shape
The Joukowsky transform $f(z) = z + \frac{1}{z}$ applied to a circle passing through $z = 1$ (with $z = -1$ in its interior) produces an **airfoil-shaped curve** — the classic Joukowsky airfoil.
**Key geometric features:**
- The circle is typically centered at some po... |
A framework in 2D consists of 6 vertices and 9 edges. Apply the Laman condition (2n-3) to determine if the graph is generically rigid. If one edge is removed, identify if the resulting structure contains a mechanism (degree of freedom) and describe the motion of the vertices visually. | # Laman Condition Analysis
## Step 1: Check the Laman Condition
For a 2D framework to be **generically (minimally) rigid**, it must satisfy:
$$E = 2n - 3$$
where *n* = number of vertices, *E* = number of edges.
**Given:**
- n = 6 vertices
- E = 9 edges
**Calculation:**
$$2n - 3 = 2(6) - 3 = 12 - 3 = 9$$
Since **... |
Take a Rhombic Dodecahedron and construct its dual polyhedron. Identify the dual shape, count its vertices, edges, and faces, and determine if the dual is one of the Platonic, Archimedean, or Catalan solids. | # Dual of the Rhombic Dodecahedron
## Identifying the Dual Shape
The rhombic dodecahedron has:
- 14 vertices (8 of degree 3, 6 of degree 4)
- 24 edges
- 12 rhombic faces
Taking the dual polyhedron means:
- Each face becomes a vertex
- Each vertex becomes a face
- Edges remain equal in number (connecting correspondin... |
A circular image is projected onto a cylindrical mirror of radius R and viewed from a point (d, 0, h). Describe the coordinate transformation required to 'un-distort' the reflected image back into a standard Cartesian grid. Calculate the Jacobian of this transformation to determine where the image compression is most e... | # Cylindrical Mirror Anamorphosis: Coordinate Transformation Analysis
## 1. Setup and Physical Configuration
**Geometry:**
- Cylindrical mirror: radius $R$, axis along the $z$-axis
- Viewer position: $V = (d, 0, h)$, with $d > R$ (outside the cylinder)
- Source image: flat image lying in a plane (typically $z=0$, the... |
An aircraft flies from (0°N, 0°E) to (60°N, 90°E) along the shortest path on a spherical Earth of radius R. Calculate the total distance of the path and the initial heading (bearing) of the aircraft. Determine the highest latitude reached during the flight. | ## Setup
Let point A = (0°N, 0°E) and point B = (60°N, 90°E). Using spherical trigonometry with latitude φ and longitude λ:
- φ₁ = 0°, λ₁ = 0°
- φ₂ = 60°, λ₂ = 90°
- Δλ = 90°
## 1. Great-Circle Distance
Using the spherical law of cosines:
$$
\cos d = \sin\varphi_1\sin\varphi_2 + \cos\varphi_1\cos\varphi_2\cos\... |
A flow is defined by the complex potential W(z) = Uz + m ln(z). Describe the visual pattern of the streamlines. Identify the location of the stagnation point and find the equation of the 'Rankine Half-Body' defined by the streamline that passes through the stagnation point. | # Flow Pattern: Uniform Flow + Source
## Physical Description
The complex potential
$$W(z) = Uz + m\ln z$$
represents the superposition of:
- **Uniform flow** with velocity $U$ in the $+x$ direction
- **A source** of strength $m$ located at the origin
**Visual pattern of streamlines:**
- Far upstream (large negativ... |
A needle of length 'l' is dropped onto a floor tiled with regular hexagons of side length 's', where l < s. Derive the probability that the needle will cross at least one edge of the tiling. Express the result as a function of l, s, and pi. | ## Setting Up the Problem
A regular hexagonal tiling can be viewed as the superposition of **three families of equally spaced parallel lines**, each family oriented 60° apart from the others (corresponding to the three edge directions of the hexagons).
**Finding the line spacing d:**
For a hexagon of side length $s$... |
In an AWGN channel, a 16-QAM constellation is used for signaling. Visualize the decision regions (Voronoi regions) for each constellation point in the I-Q plane. If the signal-to-noise ratio decreases, explain geometrically how the probability of error relates to the area of these regions and the distance between point... | # Decision Regions in 16-QAM: Geometric Analysis
## The Constellation Structure
A standard 16-QAM constellation places 16 points on a square grid in the I-Q plane, typically at amplitude levels {±1, ±3} × {±1, ±3} (normalized). This creates three categories of points:
- **4 corner points** (e.g., ±3, ±3) — each has ... |
A particle slides under gravity along a curve from A to B. If a kinetic friction coefficient mu exists between the particle and the curve, derive the differential equation for the curve of fastest descent (Brachistochrone). Explain how the presence of friction shifts the 'lowest' point of the optimal curve visually com... | # Brachistochrone with Coulomb Friction
## 1. Setup
Let the particle move under gravity from point A (origin) to point B, with coordinates $x$ (horizontal, direction of motion) and $y$ (vertical, positive **downward**, taken along the direction gravity acts).
Parametrize the curve as $y = y(x)$, with arc length elem... |
Given a set of points P = {(0,0), (4,0), (2,1), (2,4)}, construct the Delaunay Triangulation. Identify which edge, if any, violates the 'empty circumcircle' property and must be flipped. After the flip, calculate the area of the Voronoi cell associated with the point (2,1). | ## Setting Up the Problem
Points: A(0,0), B(4,0), C(2,1), D(2,4)
**Step 1: Check the convex hull**
Testing whether C(2,1) lies inside triangle ABD:
- Line AB (y=0): C is above ✓ (same side as D)
- Line AD (2x−y=0): B gives 8>0, C gives 3>0 ✓ (same side)
- Line BD (4x+2y−16=0): A gives −16<0, C gives −6<0 ✓ (same sid... |
Find the Steiner tree that connects the four vertices of a unit square. Calculate the total length of the edges and the exact angles at the Steiner points. Contrast this with the total length of the edges of a minimum spanning tree for the same four points. | # Steiner Tree for a Unit Square
## Setup
Consider a unit square with vertices at (0,0), (1,0), (1,1), (0,1).
## The Steiner Tree Solution
The minimum Steiner tree for a unit square requires **two Steiner points** (also called Fermat points), each connected to two adjacent square vertices and to each other. This cr... |
A Penrose P3 tiling consists of 'thin' and 'thick' rhombs. If the ratio of the number of thick rhombs to thin rhombs in an infinite tiling is the golden ratio phi, and the side length is 1, calculate the average area per tile in the infinite limit. | ## Setting Up the Problem
**Areas of the rhombs (side length = 1):**
For a rhombus with side length $s=1$ and acute angle $\theta$, the area is $\sin\theta$.
- **Thick rhomb:** acute angle = 72°, so area = $\sin 72°$
- **Thin rhomb:** acute angle = 36°, so area = $\sin 36°$
**Exact values:**
$$\sin 72° = \frac{\sqr... |
In a unit square, two lines are drawn by picking two points at random on the perimeter and connecting them. Calculate the probability that the two lines intersect inside the square. Use Crofton's formula or a direct geometric probability approach. | 1/3 |
In 3D space, a vector v is rotated 90 degrees around the axis (1,1,0) using a Rotor in Geometric Algebra. Define the bivector representing the rotation plane, construct the Rotor, and calculate the resulting vector. Compare this to the result obtained using a standard Rotation Matrix. | # Rotation via Geometric Algebra: Rotor Construction
## Step 1: Define the Rotation Plane (Bivector)
The axis is **n** = (1,1,0)/√2 (normalized). The bivector representing the plane *perpendicular* to this axis is found via the dual relationship:
$$B = I\hat{n}$$
where I = e₁e₂e₃ is the pseudoscalar. With n̂ = (e₁+... |
A planar curve defined by x^4 + y^4 = 1 (a squircle) intersects a parabola y = x^2 + c. Determine the maximum number of intersection points possible in the complex projective plane according to Bezout's Theorem and find the range of real values for 'c' that result in exactly 2 real intersection points. | ## Bezout's Theorem — Maximum Intersections
The squircle x⁴ + y⁴ = 1 is a curve of degree 4, and the parabola y = x² + c is a curve of degree 2 (rewritten as y − x² − c = 0). By Bézout's Theorem, two plane curves of degrees *m* and *n* intersect in exactly *m·n* points when counted with multiplicity in the complex pro... |
Ford circles are tangent to the x-axis at every rational number p/q in lowest terms. If two circles C(p/q) and C(r/s) are tangent to each other, prove that ps - qr = +/- 1. Visually, if we look at the gap between the circles for 1/2 and 1/3, what is the size of the largest Ford circle that can be inscribed in that gap? | ## Part 1: Proving the Tangency Condition
**Setup.** The Ford circle $C(p/q)$ for $p/q$ in lowest terms ($q>0$) has center $(p/q,\, 1/(2q^2))$ and radius $1/(2q^2)$, since it sits tangent to the x-axis at $(p/q,0)$.
Let $C(p/q)$ have center $(p/q,\, 1/(2q^2))$, radius $1/(2q^2)$, and let $C(r/s)$ have center $(r/s,\,... |
A 3-dimensional hyperbolic space is modeled in the upper half-space model. A geodesic plane is defined by a hemisphere centered on the boundary z=0. If a second geodesic plane is a vertical plane, describe the visual intersection of these two planes and calculate the hyperbolic angle between them at their intersection. | # Intersection of a Hemisphere and a Vertical Plane in H³
## Setup
In the upper half-space model of hyperbolic 3-space,
$$\mathbb{H}^3 = \{(x, y, z) \in \mathbb{R}^3 : z > 0\}$$
with the metric:
$$ds^2 = \frac{dx^2 + dy^2 + dz^2}{z^2}$$
**Geodesic planes** in this model are represented by:
- **Hemispheres** centere... |
Given a vector field B = (0, x, cos(z)), visualize the field lines in a 3D box. Calculate the helicity H = integral(A dot B dV) where B = curl(A) over a closed volume. Explain what the sign of the helicity implies about the 'linkage' or 'knottedness' of the field lines. | # Field Analysis: B = (0, x, cos(z))
## 1. Finding the Vector Potential A
Since B = ∇ × A, we need to solve:
- ∂A_z/∂y − ∂A_y/∂z = 0
- ∂A_x/∂z − ∂A_z/∂x = x
- ∂A_y/∂x − ∂A_x/∂y = cos(z)
**A convenient choice** (using the "Coulomb-like" gauge, setting A_z = 0):
$$A_x = 0, \quad A_y = \sin(z), \quad A_z = 0$$
Check:... |
A Schwarzschild black hole is depicted in Kruskal-Szekeres coordinates. Identify the regions corresponding to the exterior, the interior (singularity), and the parallel universe. Trace the path of a light ray (null geodesic) on this diagram and explain why it can never escape the event horizon. | # Kruskal-Szekeres Diagram: Regions and Light Ray Behavior
## The Four Regions
In Kruskal-Szekeres coordinates (X, T), the Schwarzschild geometry is divided into four distinct regions by the event horizon lines (X = ±T):
**Region I (Right wedge, X > |T|):**
This is our **exterior universe** — the ordinary asymptoti... |
The Sylvester-Gallai theorem states that for any finite set of points in the plane, either all points are collinear or there exists a line passing through exactly two points. Construct a visual counter-example in the complex projective plane (the Hesse configuration) and explain why the theorem fails there while holdin... | # The Hesse Configuration: A Counter-Example in CP²
## The Construction
The **Hesse configuration** consists of 9 points and 12 lines, arising naturally as the 9 inflection points of a smooth cubic curve in the complex projective plane (e.g., the Fermat cubic $x^3 + y^3 + z^3 = 0$).
**Coordinates of the 9 points** (... |
A 2x2 image matrix A = [[3, 0], [4, 5]] is decomposed using Singular Value Decomposition (SVD). Calculate the singular values and the orthonormal matrices U and V. Visually describe how the unit circle is transformed by this matrix A into an ellipse, identifying the lengths of the semi-axes. | # SVD Decomposition of A = [[3, 0], [4, 5]]
## Step 1: Compute A^T A
$$A^T A = \begin{bmatrix} 3 & 4 \\ 0 & 5 \end{bmatrix}\begin{bmatrix} 3 & 0 \\ 4 & 5 \end{bmatrix} = \begin{bmatrix} 25 & 20 \\ 20 & 25 \end{bmatrix}$$
## Step 2: Find Eigenvalues of A^T A
$$\det(A^TA - \lambda I) = (25-\lambda)^2 - 400 = 0$$
$$(... |
Draw the Cayley graph of the Alternating Group A4 using the generators (123) and (12)(34). Identify the girth of the graph and its diameter. Is the graph vertex-transitive? Justify your answer based on the visual symmetry of the graph. | # Cayley Graph of A4 with Generators (123) and (12)(34)
## Setup
A4 has 12 elements. We use generators:
- **a = (123)**, order 3, so a³ = e
- **b = (12)(34)**, order 2, so b² = e
The Cayley graph has 12 vertices, with edges from directed 3-cycles (for *a*) and undirected edges (for *b*, since it's an involution).
#... |
A 'Fat Cantor Set' is constructed by removing a middle interval of length beta^n at each step n. If the sum of removed lengths is less than 1, the resulting set has positive Lebesgue measure. Calculate the measure of a set where the removed fraction at step n is 1/4^n and determine its fractal dimension. | **Measure calculation**
At step *n* there are 2ⁿ⁻¹ intervals present, and from each we remove a middle piece of length (1/4)ⁿ.
Total length removed:
$$
L_{removed}=\sum_{n=1}^{\infty} 2^{n-1}\left(\frac{1}{4}\right)^{n}
=\frac12\sum_{n=1}^{\infty}\left(\frac{2}{4}\right)^{n}
=\frac12\sum_{n=1}^{\infty}\left(\frac12\... |
Standard Venn diagrams using circles cannot represent all 16 intersections of 4 sets. Describe a visual construction using ellipses or Venn's own construction using congruent curves that succeeds. Label the region representing (A intersect B) minus (C union D). | ## Four-Set Venn Diagrams: Why Circles Fail and What Works
**Why circles cannot do it:** With 4 circles, each pair of circle boundaries can cross at most 2 points, which mathematically limits the number of distinct enclosed regions you can generate. You end up with at most 14 regions instead of the needed 16 — some in... |
In a 1D Voronoi game on a line segment [0, 1], Player 1 places a point, then Player 2 places a point. The goal is to maximize the length of your Voronoi cell. If Player 1 places at x=0.25, where should Player 2 place their point to maximize their share? Generalize this to a 2D square for two players. | ## 1D Case
Player 1 places at **x = 0.25**.
**Optimal response for Player 2:** Place at **x = 0.25 + ε** (just to the right of Player 1's point), for infinitesimally small ε.
**Why this works:**
The Voronoi cell boundary between two points on a line is simply their midpoint. If Player 2 places at position *p*, the d... |
A system of ODEs is given by dx/dt = y, dy/dt = -sin(x) - 0.5y (a damped pendulum). Sketch the phase portrait in the (x, y) plane. Identify the stable and unstable equilibria and describe the visual behavior of the separatrices. | # Damped Pendulum Phase Portrait Analysis
## Equilibrium Points
Setting dx/dt = 0 and dy/dt = 0:
- y = 0 and sin(x) = 0 → **x = nπ, y = 0** for integer n
This gives two types of equilibria depending on parity:
### Stable Equilibria (Stable Spirals)
**Location:** x = 0, ±2π, ±4π, ... (y = 0)
These correspond to the... |
Minkowski's Theorem states that a convex, centrally symmetric set in R^n with volume > 2^n contains a non-zero lattice point. Visualize this in 2D for an ellipse centered at the origin. What are the constraints on the ellipse's axes for it to be guaranteed to contain an integer point other than (0,0)? | # Minkowski's Theorem for an Ellipse in 2D
## Setting Up the Ellipse
Consider an ellipse centered at the origin:
$$\frac{x^2}{a^2} + \frac{y^2}{b^2} \leq 1$$
This is convex and centrally symmetric (if $(x,y)$ is in the set, so is $(-x,-y)$), so Minkowski's Theorem applies directly.
## Applying the Area Condition
*... |
The curve y = 1/x for x >= 1 is rotated around the x-axis to form Gabriel's Horn. Show that while the volume is finite, the surface area is infinite. Visually, explain the paradox of how a finite volume of paint could fill the horn but an infinite amount is needed to coat its surface. | # Gabriel's Horn: Finite Volume, Infinite Surface Area
## Setting Up the Problem
Rotate y = 1/x for x ≥ 1 about the x-axis. This creates a horn-shaped solid extending infinitely in the x-direction.
## Volume Calculation
Using the disk method:
$$V = \pi \int_1^{\infty} \left(\frac{1}{x}\right)^2 dx = \pi \int_1^{\i... |
In a crystal lattice with plane spacing 'd', X-rays of wavelength lambda are incident at an angle theta. Draw the geometry of the path difference between waves reflected from successive planes and derive Bragg's Law. If the first-order reflection occurs at 30 degrees, at what angle does the second-order reflection occu... | # Bragg's Law Derivation
## Geometry Setup
Consider a crystal lattice made of parallel atomic planes separated by spacing **d**. X-rays of wavelength **λ** strike these planes at a glancing angle **θ** (measured from the plane surface, not the normal).
```
Incident rays Reflected rays
... |
Find the rectangle of maximum area that can be inscribed in an ellipse (x/a)^2 + (y/b)^2 = 1. Use the Karush-Kuhn-Tucker (KKT) conditions to solve this constrained optimization problem and provide the dimensions in terms of a and b. | # Maximum Area Rectangle Inscribed in an Ellipse
## Problem Setup
Consider a rectangle inscribed in the ellipse (x/a)² + (y/b)² = 1, with sides parallel to the axes. By symmetry, if one vertex is at (x, y) with x, y > 0, the rectangle has vertices at (±x, ±y).
**Objective:** Maximize the area
$$A(x,y) = 4xy$$
**Sub... |
A square plate of side L is vibrating at a frequency corresponding to the (m, n) mode. The nodal lines (where the plate doesn't move) form Chladni patterns. For the (2,1) mode, derive the equation of the nodal lines and sketch the resulting pattern. How does the pattern change if the boundary conditions switch from cla... | # Nodal Lines for the (2,1) Mode in a Square Plate
## Setting Up the Mode Shape
For a vibrating square plate with simply supported (or approximately free) edges, the displacement can be described by a superposition of characteristic functions. For a simply-supported plate, the natural mode shapes take the simple sinu... |
Let S1 be a V-shaped polygon with vertices at (0,2), (1,0), (2,2), and (1,1). Let S2 be a square with vertices at (0,0), (0,1), (1,1), and (1,0). Compute the exact vertices of the Minkowski sum S1 + S2. Describe the visual topology of the resulting shape, specifically identifying if any 'holes' or internal boundaries a... | ## Setting Up the Problem
**S1** is a non‑convex (arrow/"V"-shaped) quadrilateral with a reflex vertex at (1,1):
- (0,2) → (1,0) → (2,2) → (1,1) → back to (0,2)
**S2** is the unit square [0,1]×[0,1].
Since S1 is non-convex, I decompose it at its reflex vertex (1,1) into two convex triangles:
- **T1** = (0,2), (1,0)... |
Given a diagram of objects A, B, C, D and morphisms f:A->B, g:A->C, h:B->D, k:C->D, define what it means for the diagram to commute. If the diagram is a pushout square in the category of Sets, describe the visual construction of the object D in terms of the disjoint union and an equivalence relation. | # Commutativity of the Diagram
Given objects $A, B, C, D$ with morphisms $f: A \to B$, $g: A \to C$, $h: B \to D$, $k: C \to D$, the diagram commutes when:
$$h \circ f = k \circ g$$
That is, both composite paths from $A$ to $D$ — going through $B$ via $f$ then $h$, or through $C$ via $g$ then $k$ — yield the **same ... |
A family of ellipses and hyperbolas share the same foci at (-c, 0) and (c, 0). Prove that any ellipse in the family intersects any hyperbola in the family at right angles. Provide a visual proof using the properties of tangents to conics as bisectors of angles between focal radii. | ## Setup
Fix two points $F_1=(-c,0)$ and $F_2=(c,0)$. Consider
- the family of ellipses with these foci:
$$E_a:\ \frac{x^2}{a^2}+\frac{y^2}{a^2-c^2}=1,\qquad a>c,$$
- the family of hyperbolas with the same foci:
$$H_b:\ \frac{x^2}{b^2}-\frac{y^2}{c^2-b^2}=1,\qquad 0<b<c .$$
For a point $P$ on any of these conics wri... |
Construct a Suffix Automaton for a string S of length N. For each state in the automaton, calculate the number of occurrences of the substrings represented by that state. Then, use this to find the total number of distinct substrings that appear at least K times in S. The solution must run in O(N) time and space. Provi... | # Suffix Automaton: Counting Substrings by Occurrence Frequency
## 1. Suffix Automaton Construction Overview
The Suffix Automaton (SAM) for string S is built incrementally in O(N) time. Each state represents an equivalence class of substrings sharing the same set of ending positions (endpos). Key properties:
- Each ... |
Given a graph with N vertices and M operations, where operations can be adding an edge, removing an edge, or checking if two vertices are in the same connected component. Implement this using Link-Cut Trees. Ensure you handle the 'evert' operation correctly to maintain the tree structure during edge removals. Describe ... | # Link-Cut Trees for Dynamic Connectivity with Path Queries
## Core LCT Structure
Each node maintains:
```
struct Node {
Node *ch[2], *parent;
bool rev; // lazy reversal flag
int val; // for edge weight variant
int maxVal; // max in subtree (splay tree = path)
Node* ma... |
Given a tree where each node has a color. Process Q queries: find the distance to the nearest node of color C from a starting node U. Use Centroid Decomposition to build a centroid tree. For each centroid, maintain a data structure (like a sorted list or segment tree) of distances to nodes of each color in its subtree.... | # Centroid Decomposition for Nearest Color Queries
## Data Structure Setup
**Centroid Tree Construction:**
- Build centroid decomposition tree with O(log N) depth
- For each node `v`, let `anc(v)` = list of centroids in the centroid tree path from `v` to the root centroid (there are O(log N) such ancestors)
**Per-Ce... |
Consider an array A of size 2^N. For every mask M, calculate the sum of A[i] such that (i & M) == i. However, extend this to a 3-state logic: for each index i in the mask, the corresponding bit in the sub-mask can be 0, 1, or 'don't care' (represented as a base-3 system). Optimize the computation to O(3^N) or better. E... | # Sum Over Submasks (SOS) with 3-State Logic
## Standard Problem Recap
The classic SOS DP computes, for every mask `M`:
```
F(M) = Σ A[i] for all i such that (i & M) == i
```
This means `i` is a **submask** of `M` — wherever `M` has a 0, `i` must have a 0; wherever `M` has a 1, `i` can be 0 or 1.
This is computed in... |
Implement a persistent segment tree that supports range addition and range sum queries. The challenge lies in the fact that standard lazy propagation creates O(log N) new nodes per query, which is memory-intensive. Devise and implement a 'push-down' free version (modification-on-path) or a node-cloning strategy that op... | # Persistent Segment Tree with Range Add & Range Sum
## Key Insight: Tag-on-Path (Lazy-Free Persistence)
The classic problem: with lazy propagation, pushing down a lazy tag creates children copies, which then need their own copies when modified — causing cascading node creation. The solution is to **never push down**... |
Implement a data structure that supports adding lines of the form y = mx + c and querying the maximum value of y for a given x. The slopes are not monotonic, and the query points are not monotonic. Use a Li Chao Tree or a balanced BST (like a CDQ divide and conquer or a dynamic hull) to achieve O(log N) per operation. ... | # Li Chao Tree Implementation
## Core Concept
A Li Chao Tree is a segment tree over the x-coordinate domain (either the actual range of queries or a compressed coordinate range). Each node stores **one line**, chosen to be the "best" line for that node's midpoint. Lines are inserted by recursively comparing candidate... |
You are given a directed graph with capacities and costs. Unlike standard problems, the graph may contain negative cost cycles. Describe a transformation of the graph to remove negative cycles or an adaptation of the successive shortest path algorithm (e.g., using the Bellman-Ford or SPFA once and then reduced costs) t... | # Min-Cost Max-Flow with Negative Cycles
## The Problem
Standard MCMF algorithms (successive shortest paths) rely on Dijkstra with reduced costs, which requires non-negative edge costs in the residual graph. If the original graph has negative-cost edges (possibly forming negative cycles), we can't directly apply Dijk... |
Build an Aho-Corasick automaton for a set of patterns. Given a long text T, count how many times each pattern appears. Instead of traversing the text and following failure links repeatedly, build a 'failure tree' where an edge exists from 'fail[u]' to 'u'. Explain how to use a tree-based prefix sum (or Fenwick tree on ... | # Aho-Corasick with Failure Tree for Efficient Occurrence Counting
## Core Idea
The naive approach follows failure links repeatedly for every character of text, which can degrade to O(|T| · depth) in the worst case. Instead, we decouple the two phases:
1. **Phase 1 (Fast pass over T):** For each character, jump to t... |
Given a polynomial P(x) modulo 998244353, find its multiplicative inverse Q(x) such that P(x)Q(x) = 1 (mod x^N). Extend this to find the square root of a polynomial. Use Newton's method for functional iteration and explain the doubling step where the precision of the Taylor expansion increases from k to 2k. | # Polynomial Inverse and Square Root via Newton's Method
## Part 1: Polynomial Inverse mod x^N
**Problem:** Given P(x) with P(0) ≠ 0, find Q(x) such that:
$$P(x)Q(x) \equiv 1 \pmod{x^N}$$
### Newton's Method Setup
We want to find a root of the functional equation in Q:
$$F(Q) = P(x) - \frac{1}{Q(x)} = 0$$
Or equiv... |
Find the number of ways to partition an integer N into K parts such that each part is a prime number less than M. Use a generating function approach combined with NTT (Number Theoretic Transform) to compute the coefficient of x^N in the product of polynomials. Discuss how to handle the 'exactly K parts' constraint usin... | # Partitioning N into K Prime Parts (< M)
## Problem Setup
We need to count partitions of N into exactly K parts, where each part is a prime number less than M. Order doesn't matter (partition, not composition), and parts can repeat.
## Bivariate Generating Function
For each prime `p < M`, a part of size `p` can be... |
In a game played on a graph, two players take turns moving a token along edges. The game ends when a player cannot move. If the graph is a DAG, Grundy numbers are easy. If the graph contains cycles and the game can be infinite (a draw), describe an algorithm to compute the winning, losing, and drawing positions. How do... | ## Single Graph with Cycles: Backward Induction with Draws
When cycles are present, the game may not terminate, so we need a three-way classification: **Win (W)**, **Lose (L)**, **Draw (D)** for the player about to move. The standard Grundy number approach breaks down because it assumes finite game trees, so we use a ... |
Design a system for a tree where you can update all nodes in a subtree, update all nodes on a path, and query the XOR sum of nodes on a path. Explain the coordinate transformation required to map subtree ranges and path segments into a single Fenwick tree or Segment Tree. What is the worst-case complexity of a path upd... | # Heavy-Light Decomposition with Euler Tour for Subtree + Path Operations
## Core Idea
We need two coordinate transformations that coexist on the **same node ordering**:
1. **Euler Tour (DFS in/out times)** — enables subtree range updates
2. **Heavy-Light Decomposition (HLD)** — enables path updates/queries by break... |
Implement a robust primality test and integer factorization for numbers up to 2^128 - 1. Since standard 64-bit types overflow, describe the implementation of Montgomery multiplication to perform (a*b)%m efficiently. Explain the cycle-finding heuristic in Pollard's Rho and how to optimize it using Brent's improvement. | # Primality Testing and Factorization for 128-bit Integers
## 1. The Overflow Problem
For numbers up to 2^128 - 1, computing `(a * b) % m` naively requires multiplying two 128-bit numbers, producing a 256-bit intermediate result. Most languages don't have native 256-bit integer types, so we need either:
- Compiler in... |
Find a feasible flow in a network where each edge (u, v) has both a lower bound l(u, v) and an upper bound c(u, v). Explain the construction of the auxiliary graph with a super-source and super-sink. How do you determine if a circulation exists, and how do you transform a feasible flow into a maximum flow? | # Feasible Flow with Lower and Upper Bounds
## Problem Setup
Given a directed graph G = (V, E) where each edge (u,v) has:
- Lower bound: l(u,v)
- Upper bound (capacity): c(u,v)
We want to find a **feasible circulation** f such that for every edge:
$$l(u,v) \leq f(u,v) \leq c(u,v)$$
and **flow conservation** holds a... |
Implement Fortune's sweep-line algorithm to construct a Voronoi Diagram of N points in O(N log N). Detail the handling of the 'circle event' and 'site event' in the beach-line (represented as a parabolic arc sequence). How do you robustly handle the degenerate case where four points are concyclic? | # Fortune's Algorithm Implementation
## Core Data Structures
```python
import heapq
from dataclasses import dataclass, field
from enum import Enum
class EventType(Enum):
SITE = 1
CIRCLE = 2
@dataclass(order=True)
class Event:
y: float # sweep line position (priority)
x: floa... |
Given a 2-SAT instance, find the lexicographically smallest boolean assignment. Standard Tarjan's or Kosaraju's for SCCs finds *any* valid assignment. Explain why a greedy approach with backtracking or a specific ordering of variable implications is necessary for the lexicographically smallest constraint. What is the c... | # Lexicographically Smallest 2-SAT Assignment
## Why Standard SCC Assignment Doesn't Give Lex-Smallest
The standard 2-SAT algorithm assigns each variable `x` based on SCC order:
- If `SCC(x) == SCC(¬x)` → UNSAT
- Otherwise, `x = TRUE` if `SCC(x)` comes **after** `SCC(¬x)` in topological order (i.e., `x` is in a compo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.