Coder Social home page Coder Social logo

wiedemannpython's Introduction

WiedemannPython

GF(2) Wiedemann algorithm to solve a sparse linear system.

The non (invertible square) case

Wie86's first reduction to the invertible square case

  • Singular square case

If we apply the algorithm to a singular square matrix and it doesn't return a solution, it produces a linear combination between columns -> one column is eliminated and we iterate with the smaller (non square) matrix.

  • Non square case

The non square case is reduced to the square case by considering one row (if A has more rows than columns) or one column (if A has more columns than rows) to be the "b" of the algorithm. In every case, this gives a linear combination -> one row (or one colmn) is eliminated and we iterate.

  • For our needs

Let's define m = nb_rows_A, n = nb_columns_A, r = rank_A. With this approach, the algorithm is run (n-r) + (m-r) + 1 times. This is too much if we apply it to the full local parity-check matrix. Is it possible to use the full chain complex to reduce the local parity-check matrix upfront?

Wie86's better approaches

  • Instead of reducing A to an (r, r) square invertible matrix, it is possible to add random elements to A and extend it to a (max(m,n), max(m,n)) square matrix. This matrix is invertible with high probability. A solution to the extended problem leads to a solution to the original problem.

  • Wiedeman gives yet another method for the case where A is a thin rectangle (m >> n or m << n).

KS91's approach

  • compute the rank of A first. (takes O(n^2) time).
  • verify that b belongs to Im(A).
  • if yes, compute a solution by solving an (r, r) square invertible system.

This approach relies on a field with a number of elements linear in n (which is not a all the case of GF(2) :( ). A more detailed reading is necessary to understand if this approach is practical for our use case.

wiedemannpython's People

Contributors

vivienlonde avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.