Documentation

Atlas.AnAlgorithmistsToolkit.code.Sparsification

theorem Sparsification.loewner_order_iff_posSemidef {n : Type u_1} {๐•œ : Type u_2} [RCLike ๐•œ] (M N : Matrix n n ๐•œ) :
Instances For
    structure Sparsification.SymmWeights (V : Type u_4) :
    Type u_4
    • w : V โ†’ V โ†’ โ„
    • symm (i j : V) : self.w i j = self.w j i
    • diag_zero (i : V) : self.w i i = 0
    Instances For
      noncomputable def Sparsification.weightedLapMatrix {V : Type u_3} [Fintype V] [DecidableEq V] (W : SymmWeights V) :
      Instances For
        theorem Sparsification.weightedLap_inner_sum {V : Type u_3} [Fintype V] [DecidableEq V] (W : SymmWeights V) (x : V โ†’ โ„) (i : V) :
        โˆ‘ j : V, (if i = j then โˆ‘ k : V, W.w i k else -W.w i j) * x j = (โˆ‘ k : V, W.w i k) * x i - โˆ‘ j : V, W.w i j * x j
        theorem Sparsification.weightedLap_quadform_eq {V : Type u_3} [Fintype V] [DecidableEq V] (W : SymmWeights V) (x : V โ†’ โ„) :
        x โฌแตฅ (weightedLapMatrix W).mulVec x = โˆ‘ i : V, โˆ‘ j : V, W.w i j * x i * (x i - x j)
        theorem Sparsification.sum_swap_quadform {V : Type u_3} [Fintype V] (W : SymmWeights V) (x : V โ†’ โ„) :
        โˆ‘ i : V, โˆ‘ j : V, W.w i j * x j * (x j - x i) = โˆ‘ i : V, โˆ‘ j : V, W.w i j * x i * (x i - x j)
        theorem Sparsification.quadform_half_sum {V : Type u_3} [Fintype V] (W : SymmWeights V) (x : V โ†’ โ„) :
        โˆ‘ i : V, โˆ‘ j : V, W.w i j * x i * (x i - x j) = 1 / 2 * โˆ‘ i : V, โˆ‘ j : V, W.w i j * (x i - x j) ^ 2
        theorem Sparsification.weightedLapMatrix_posSemidef {V : Type u_3} [Fintype V] [DecidableEq V] (W : SymmWeights V) (hw : โˆ€ (i j : V), 0 โ‰ค W.w i j) :
        theorem Sparsification.weightedLapMatrix_sub_eq {V : Type u_3} [Fintype V] [DecidableEq V] (Wโ‚ Wโ‚‚ : SymmWeights V) :
        weightedLapMatrix Wโ‚ - weightedLapMatrix Wโ‚‚ = weightedLapMatrix { w := fun (i j : V) => Wโ‚.w i j - Wโ‚‚.w i j, symm := โ‹ฏ, diag_zero := โ‹ฏ }
        theorem Sparsification.claim6_weight_monotone_loewner {V : Type u_3} [Fintype V] [DecidableEq V] (W_G W_H : SymmWeights V) (hw : โˆ€ (i j : V), W_H.w i j โ‰ค W_G.w i j) :
        noncomputable def Sparsification.cutValue {V : Type u_3} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (S : Finset V) :
        Instances For
          Instances For
            noncomputable def Sparsification.minCutValue {V : Type u_3} [Fintype V] [DecidableEq V] (G : SimpleGraph V) :
            Instances For
              Instances For
                theorem karger_cut_bound {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (hc : 0 < Sparsification.minCutValue G) (ฮฑ : โ„) (hฮฑ : 1 โ‰ค ฮฑ) :