Expand description
Auto-generated module
π€ Generated with SplitRS
FunctionsΒ§
- alg_
solution_ ty AlgSolution : ApproxAlgorithm P β String β RealThe solution value produced by the approximation algorithm.- app
- app2
- app3
- approx_
algorithm_ ty ApproxAlgorithm : OptimizationProblem β TypeAn algorithm with a guaranteed approximation ratio.- approx_
ratio_ ty ApproxRatio : ApproxAlgorithm P β RealThe approximation ratio achieved by the algorithm.- apx_
complete_ ty APXComplete : OptimizationProblem β PropThe problem is APX-complete.- apx_
hard_ ty APXHard : OptimizationProblem β PropThe problem is APX-hard: no PTAS unless P=NP.- apx_ty
APX : OptimizationProblem β PropThe problem is in APX: has a constant-factor approximation algorithm.- arora_
ptas_ euclidean_ tsp_ ty AroraPTASEuclideanTSP : Prop- arrow
- bool_ty
- build_
approximation_ algorithms_ env - Populate an
Environmentwith approximation algorithm axioms. - build_
approximation_ algorithms_ ext_ env - Register all Β§9βΒ§12 approximation algorithm axioms into
env. - build_
env - Alias for
build_approximation_algorithms_env. - bvar
- christofides_
serdyukov - Christofides-Serdyukov algorithm for metric TSP (3/2-approximation). Full implementation with minimum perfect matching on odd-degree vertices.
- christofides_
serdyukov_ ty ChristofidesSerdyukov : 3/2-approximation for metric TSPThe Christofides-Serdyukov algorithm:- chromatic_
inapprox_ ty ChromaticInapprox : Graph coloring is hard to approximate within n^(1βΞ΅)- clique_
inapprox_ ty CliqueSizeInapprox : MAX-CLIQUE has no n^(1βΞ΅)-approximation unless P=NP- correlation_
rounding_ ty CorrelationRounding : LPRelaxation P β ApproxAlgorithm P- cst
- dependent_
rounding_ ty DependentRounding : LPRelaxation P β ApproxAlgorithm P- eptas_
ty EPTAS : OptimizationProblem β PropEfficient PTAS: running time is f(1/Ξ΅)Β·poly(n) for some function f.- facility_
location_ bicriteria_ ty FacilityLocationBicriteria : Real β Real β Prop- fptas_
subset_ ptas_ ty FPTAS_subset_PTAS : Every FPTAS problem has a PTAS- fptas_
ty FPTAS : OptimizationProblem β PropThe problem has a Fully PTAS: running time is poly(n, 1/Ξ΅).- gap_
amplification_ ty GapAmplification : Prop- goemans_
williamson_ max_ cut_ ty GoemansWilliamsonMaxCut : 0.878-approximation for MAX-CUT via SDP- goemans_
williamson_ ratio_ ty GoemansWilliamsonRatio : Real- greedy_
algorithm_ ty GreedyAlgorithm : OptimizationProblem β TypeA greedy algorithm making locally optimal choices at each step.- greedy_
max_ coverage - Greedy max-coverage algorithm: select k sets to maximize the number of covered elements. Achieves (1 β 1/e)-approximation.
- greedy_
set_ cover - Greedy set cover algorithm.
universe: elements to cover (0..n).sets: each set is a Vec of elements. Returns indices of selected sets (greedy by max coverage). - hypergraph_
cut_ sdp_ ty HypergraphCutSDP : Real β Prop- inapproximability_
reduction_ ty InapproximabilityReduction : Prop- integrality_
gap_ ty IntegralityGap : LPRelaxation P β RealThe integrality gap: ratio of LP optimum to IP optimum.- is_
alpha_ approx_ ty IsAlphaApprox : OptimizationProblem β Real β PropThere exists a polynomial-time algorithm with approximation ratio Ξ±.- is_
set_ cover - Check whether a set cover covers the entire universe.
- is_
vertex_ cover - Check whether a vertex cover is valid for the given graph.
- iterative_
rounding_ thm_ ty IterativeRoundingThm : Prop- jain_
iterative_ rounding_ ty JainIterativeRounding : Prop- k_
connectivity_ approx_ ty KConnectivityApprox : Nat β Real β Prop- k_
means_ plus_ plus_ ty KMeansPlusPlus : OptimizationProblem β Prop- k_
median_ approx_ ty KMedianApprox : Real β Prop- k_
median_ local_ search_ ty KMedianLocalSearch : O(1)-approximation for k-median via local search- knapsack_
fptas - FPTAS for 0-1 knapsack. Scales item values by (Ρ·max_value / n) and runs exact DP. Achieves (1 β Ξ΅) approximation in O(n^2 / Ξ΅) time.
- kruskal_
mst - Minimum Spanning Tree using Kruskalβs algorithm. Returns (total weight, list of edges in MST).
- lasserre_
hierarchy_ ty LasserreHierarchy : OptimizationProblem β Nat β Type- list_
scheduling_ approx_ ty ListSchedulingApprox : Real β Prop- list_ty
- load_
balancing_ online_ ty LoadBalancingOnline : Real β Prop- local_
optimum_ ty LocalOptimum : LocalSearchAlgorithm P β String β PropA solution is locally optimal (no improvement in the neighborhood).- local_
search_ algorithm_ ty LocalSearchAlgorithm : OptimizationProblem β TypeA local search algorithm iteratively improves solutions.- local_
search_ max_ cut - Local search for MAX-CUT: start with random partition, swap vertices to improve cut. Returns (cut value, partition assignment: 0 or 1 for each vertex).
- local_
search_ ratio_ ty LocalSearchRatio : LocalSearchAlgorithm P β Real β PropLocal search achieves the given ratio at any local optimum.- lp_
dominates_ ty LPDominates : LPRelaxation P β OptimizationProblem β PropThe LP bound dominates (is at least as tight as) the IP optimum.- lp_
hierarchy_ ty LPHierarchy : OptimizationProblem β Nat β Type- lp_
relaxation_ ty LPRelaxation : OptimizationProblem β TypeThe LP relaxation of an integer program.- makespan_
ptas_ ty MakespanPTAS : Prop- max_
coverage_ greedy_ ty MaxCoverageGreedy : (1 β 1/e)-approximation for max coverage by greedy- max_
cut_ local_ search_ ty MaxCutLocalSearch : 2-approximation for MAX-CUT via local search- max_
sat_ inapprox_ ty MaxSATInapprox : MAX-3SAT has no (7/8 + Ξ΅)-approximation unless P=NP- max_
snp_ hard_ apx_ hard_ ty MaxSNPHard_implies_APXHard : MAX-SNP hardness implies APX-hardness- max_
snp_ ty MaxSNP : OptimizationProblem β PropThe problem is in MAX-SNP (Papadimitriou-Yannakakis class).- metric_
tsp_ 2approx - MST-based 2-approximation for metric TSP. Input: complete graph with metric distances (n x n matrix). Returns a Hamiltonian cycle (vertex ordering) and its total cost.
- metric_
tsp_ ty MetricTSP : OptimizationProblemβ TSP on metric instances (triangle inequality).- mitchell_
ptas_ euclidean_ tsp_ ty BakeryPTAS : Prop- mst_
2approx_ ty MST2Approx : MST-based 2-approximation for metric TSP- nat_ty
- network_
design_ lp_ ty NetworkDesignLPRelaxation : Type- online_
algorithm_ competitive_ ty OnlineAlgorithmCompetitive : OptimizationProblem β Real β Prop- opt_
solution_ ty OptSolution : OptimizationProblem β String β RealThe optimal solution value for a given instance.- optimization_
problem_ ty OptimizationProblem : Typeβ a minimization or maximization problem.- option_
ty - pair_ty
- pcp_
theorem_ ty PCPTheorem : NP = PCP(log n, 1)Every NP language has a proof system with logarithmic randomness and constant query complexity.- pi
- pipage_
rounding_ ty PipageRounding : LPRelaxation P β ApproxAlgorithm P- preemptive_
schedule_ approx_ ty PreemptiveScheduleApprox : Prop- primal_
dual_ algorithm_ ty PrimalDualAlgorithm : OptimizationProblem β TypeAn algorithm designed via the primal-dual schema.- primal_
dual_ guarantee_ ty PrimalDualGuarantee : PrimalDualAlgorithm P β Real β PropThe primal-dual algorithm achieves the given approximation ratio.- primal_
dual_ weighted_ vc - Primal-dual algorithm for weighted vertex cover. Maintains dual variables y_e for each edge; raises y_e until some endpoint becomes βtightβ (sum of y_e = w_v), then adds that vertex.
- prop
- ptas_
subset_ apx_ ty PTAS_subset_APX : Every PTAS problem is in APX- ptas_ty
PTAS : OptimizationProblem β PropThe problem has a Polynomial-Time Approximation Scheme: for every Ξ΅ > 0, there is a (1+Ξ΅)-approximation running in poly(n).- randomized_
rounding_ gap_ ty RandomizedRoundingGap : Real β Prop- randomized_
rounding_ ty RandomizedRounding : LPRelaxation P β ApproxAlgorithm PRandomized rounding converts LP solutions to integer solutions.- randomized_
rounding_ vertex_ cover - Randomized rounding for weighted vertex cover (LP relaxation). Solves the LP: for each vertex v, x_v β₯ 0; for each edge (u,v), x_u + x_v β₯ 1. The LP optimum is half-integral; round x_v β₯ 1/2 to 1. This gives a 2-approximation in expectation.
- real_ty
- sdp_
integrality_ gap_ ty SDPIntegralityGap : SDPRelaxation P β Real- sdp_
max_ cut_ gap_ optimal_ ty SDPMaxCutGapOptimal : Prop- sdp_
relaxation_ ty SDPRelaxation : OptimizationProblem β Type- set_
cover_ greedy_ ratio_ ty SetCoverGreedyRatio : Greedy set cover achieves H_n ratio (β€ ln n + 1)- set_
cover_ inapprox_ ty SetCoverInapprox : Set Cover has no (1 β Ξ΅)Β·ln n approximation unless P=NP- set_
cover_ lp_ gap_ ty SetCoverLPGap : The set cover LP has integrality gap Ξ(log n)- ski_
rental_ breakeven_ ty SkiRentalBreakeven : Prop- steiner_
forest_ approx_ ty SteinerForestApprox : Real β Prop- steiner_
tree_ approx_ ty SteinerTreeApprox : Real β Prop- steiner_
tree_ pd_ ty SteinertreePD : The Steiner tree primal-dual gives 2(1 β 1/l) ratio- submodular_
greedy_ ty SubmodularGreedy : Greedy gives (1 β 1/e) for submodular maximization- tightness_
integrality_ gap_ ty TightnessOfIntegralityGap : LPRelaxation P β Real β Prop- tsp_
no_ approx_ ty TSPNoApprox : Metric-free TSP has no constant approximation unless P=NP- type0
- unique_
games_ conj_ ty UniqueGamesConj : Prop- vertex_
cover_ 2approx - 2-approximation for vertex cover via greedy edge cover. At each step pick an uncovered edge (u,v) and add both endpoints to the cover.
- vertex_
cover_ apx_ hard_ ty VertexCoverAPXHard : Vertex Cover is APX-hard- vertex_
cover_ lp_ gap_ ty VertexCoverLPGap : The vertex cover LP has integrality gap 2- weighted_
vertex_ cover_ pd_ ty WeightedVertexCoverPD : 2-approximation via primal-dual for weighted VC