For an equal-part biregular graph with part size and degree , let be its biadjacency matrix and , where is the all-ones matrix. The constant row and column sums make annihilate constants on both sides. Since and the two summands have zero products, their squared matrix trace splits as displayed. The bipartite four-cycle density counts the squared matrix trace of divided by .
Use the part-preserving bipartite four-cycle density convention
Here is the indicator function of adjacency, and repeated labels are allowed. This is the homomorphism density convention appropriate to the four-cycle norm. We derive the needed counting and operator norm facts directly.
Let be the -by- biadjacency matrix, let be the all-ones vector, let , and put . The degree hypothesis says
so the centered matrix annihilates on both sides. In particular, , and
The two terms have zero products in either order. Expanding the matrix trace directly counts four adjacency factors:
Since and , we obtain
The given upper bound therefore implies
This computation proves the centered four-cycle identity for a biregular graph, rather than assuming a four-cycle norm identity.
The matrix is a positive semidefinite matrix. By the spectral theorem for real symmetric matrices it has nonnegative eigenvalues , and
Moreover, for the Euclidean norm,
Indeed , whose maximum on unit vectors is ; the Cauchy-Schwarz inequality characterization also shows that and have the same operator norm. Taking fourth roots thus gives
where the error parameter is nonnegative, as in the claimed bound.
Finally use the indicator vectors , . Their Euclidean norms are and , so the Cauchy-Schwarz inequality and the operator norm estimate yield
This is the required discrepancy bound. It also holds when either subset is empty or . In fact, because annihilates constants, replacing by gives the stronger bound . This is the spectral discrepancy bound for a biregular graph.
Perfect matching Created 2026-09-24 Updated 2026-10-14
A perfect matching is a matching in a graph that covers every vertex exactly once. Its edges have no shared endpoints, and every vertex is an endpoint of one selected edge. It is useful when a collection must be divided into disjoint pairs with no element left over.
In a bipartite graph with equally many vertices on its two sides, a perfect matching can assign every person one allowed job and every job one person. The example under permanent of a matrix has three people and three jobs, with exactly three valid assignments. The blue edges below show those three perfect matchings; a crossing in the drawing is not an extra vertex.
Figure 1.
Three perfect matchings pair every person vertex with one job vertex along allowed edges
. Details.
Every selected edge covers two vertices, so a graph with an odd integer number of vertices has no perfect matching. An even integer number is necessary but does not guarantee existence: an isolated vertex cannot be covered. A perfect matching also need not be unique. For example, the complete bipartite graph has two perfect matchings, corresponding to the two ways of assigning two people to two jobs.
Counting all perfect matchings is a different question from finding one. For a zero-one biadjacency matrix of a balanced bipartite graph, the count is its permanent of a matrix. The nonzero determinant criterion for a perfect matching supplies an existence test, but cancellation means that a zero determinant does not rule one out.
Permanent (mathematics) Created 2026-10-14 Updated 2026-10-20
The permanent of a matrix adds the products obtained by choosing one entry in each row and one in each column. For an matrix with entries in the real numbers or complex numbers,
Here each permutation chooses column in row , and the symmetric group lists every such bijection. The formula resembles the Leibniz formula for determinants, but omits the sign of a permutation. For a two-by-two matrix,
The absence of alternating signs makes the permanent of a matrix particularly useful for counting allowed assignments.
For a zero-one matrix, let rows represent people, columns represent jobs, and mean that person can do job . This is the biadjacency matrix of a bipartite graph. A product in the permanent is one exactly when all the selected assignments are allowed; otherwise it is zero. Each surviving permutation assigns every person a different job, which is a perfect matching. Thus the permanent counts perfect matchings. This interpretation and the definition are given in Yufei Zhao, Probabilistic Methods in Combinatorics, §10.2, pp. 178–179.
For a fully enumerated example, take
Among the six permutations of three columns, exactly three give nonzero products: , and . These tuples list the chosen column in each successive row. Each product is one, so . Their permutation signs are , giving . The diagram displays all three allowed assignments.
Figure 1.
Three allowed one-to-one assignments contribute positively to the permanent, while their permutation signs give a determinant of minus one
. Details.
A zero determinant need not mean that no assignment exists. The two-by-two all-ones matrix has permanent and determinant : its two assignments cancel in the determinant. The nonzero determinant criterion for a perfect matching is sufficient for existence, but the converse fails for a fixed zero-one matrix.
For nonnegative entries, the permanent instead sums assignment weights, with each assignment weighted by the product of its selected entries. It is then a total weight rather than necessarily an integer count. With arbitrary entries in the real numbers or complex numbers, even the permanent can have cancellation; the counting interpretation specifically uses zero-one entries. The permanent as probability of distinct independent choices gives another useful nonnegative interpretation.
There are terms in the defining sum, linking direct evaluation to the factorial. For the all-ones matrix, every term is one and the permanent is exactly ; the identity matrix has permanent one. Finding one allowed assignment and counting all allowed assignments are different questions. Their relationship to computational complexity theory was studied in L. G. Valiant, The complexity of computing the permanent, Theoretical Computer Science 8(2), 189–201, 1979. The elementary sum is useful for small examples, while the existing dense permanent approximation describes a more specialized way of estimating large counts.
Let be the centered biadjacency matrix of an equal-part biregular graph, and put . For subsets of the two parts, their edge discrepancy is . The Cauchy-Schwarz inequality proves the displayed bound. If the part size is , centering the two indicator vectors improves it to . The centered four-cycle identity for a biregular graph shows that implies for .