Code Monkey home page Code Monkey logo

numpat's Introduction

numpat's People

Contributors

zerobone avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

numpat's Issues

DFA not minimized correctly

The DFA generated for b=10 and m=28 is not minimized correctly. The transition from 11 on symbol 6 is 13 but should be 6:

Base:  10 Modulo:  28
Computing equivalence classes manually with an O(n^2) algorithm.
To eliminate: [10, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]
Eliminating states between 15 and 27...
Eliminating states between 13 and 13...
Eliminating states between 10 and 10...
Equivalence classes:  13 -> [[0], [15, 1], [16, 2], [10, 3, 17, 24], [18, 4], [19, 5], [27, 20, 13, 6], [21, 7], [22, 8], [23, 9], [25, 11], [26, 12], [14]]
DFA:
      |     0    1    2    3    4    5    6    7    8    9
----- | --------------------------------------------------
    0 |     0    1    2    3    4    5    6    7    8    9
    1 |     3   10   11    6   12    1    2    3    4    5
    2 |     6    7    8    9    3   10   11    6    0    1
    3 |     2    3    4    5    6    7    8    9    3   10
    4 |    11    6   12    1    2    3    4    5    6    7
    5 |     8    9    3   10   11    6    0    1    2    3
    6 |     4    5    6    7    8    9    3   10   11    6
    7 |    12    1    2    3    4    5    6    7    8    9
    8 |     3   10   11    6    0    1    2    3    4    5
    9 |     6    7    8    9    3   10   11    6   12    1
   10 |    11    6    0    1    2    3    4    5    6    7
   11 |     8    9    3   11   12    6   13    1    2    3
   12 |     0    1    2    3    4    5    6    7    8    9

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.