In this paper, we consider the problem of computing the degree of the determinant of a block-structured symbolic matrix (a generic partitioned polynomial matrix) A = (A αβ x αβ t d αβ ), where A αβ is a 2 × 2 matrix over a field F, x αβ is an indeterminate, and d αβ is an integer for α, β = 1, 2, . . . , n, and t is an additional indeterminate. This problem can be viewed as an algebraic generalization of the maximum weight perfect bipartite matching problem.The main result of this paper is a combinatorial O(n 4 )-time algorithm for the deg-det computation of a (2 × 2)-type generic partitioned polynomial matrix of size 2n × 2n. We also present a min-max theorem between the degree of the determinant and a potential defined on vector spaces. Our results generalize the classical primal-dual algorithm (Hungarian method) and min-max formula (Egerváry's theorem) for maximum weight perfect bipartite matching.