Giter Club home page Giter Club logo

submatricescountmath's Introduction

Submatrices Count Math

Research: The submatrices character count problem: an efficient solution using separable values.

My education fields are Pure Mathematics. I love math and I hope mathematics can help me to create better programs.

Article / Abstract

The subsequence character count problem has as its input an array S = S[1], ... , S[n] of symbols over alphabet A and a natural number m.

Its output is: for every i, i = 1, ... , n − m + 1, the number of different alphabet symbols occurring in the subsequence S[i], S[i + 1], ... , S[i + m − 1].

The subsequence character count problem is a natural problem that has many uses. It can be solved in linear time for finite alphabets and in time O(n log m) for infinite alphabets.

When the character count problem is generalized to two dimensions it becomes the submatrix character count problem. Its input is an n × n matrix T over alphabet A and a natural number m. Its output is: for every i,j, i,j = 1, ... , n − m + 1, the number of different alphabet symbols occurring in the submatrix T [i + k,j + ], k = 0, ... , m − 1; = 0, ... , m − 1. The straightforward one-dimensional solution slides a window along the text adding an element and deleting an element at every step.

The problem with two dimensions is that at every move of the window there are m elements added and m deleted.

We present an alternate one-dimensional solution that generalizes to two dimensions.

We achieve a O(n2) time solution to the submatrix character count problem over a finite alphabet and a O(n2 log m) solution over an infinite alphabet.

Result, Research :

For see all of the results, click here to open the result file.

INPUT = AAAAAAA
INPUT = AAAAAAA
N = 7
M = 1
R = 1111111
RD = 1
--------------
INPUT = AAAAAAA
INPUT = AAAAAAA
N = 7
M = 2
R = 111111
RD = 1
--------------
INPUT = AAAAAAA
INPUT = AAAAAAA
N = 7
M = 3
R = 11111
RD = 1
--------------
INPUT = AAAAAAA
INPUT = AAAAAAA
N = 7
M = 4
R = 1111
RD = 1
--------------
INPUT = AAAAAAA
INPUT = AAAAAAA
N = 7
M = 5
R = 111
RD = 1
--------------
INPUT = AAAAAAA
INPUT = AAAAAAA
N = 7
M = 6
R = 11
RD = 1
--------------
INPUT = AAAAAAA
INPUT = AAAAAAA
N = 7
M = 7
R = 1
RD = 1
--------------
INPUT = AAAAAAB
INPUT = AAAAAAB
N = 7
M = 1
R = 1111111
RD = 1
--------------
INPUT = AAAAAAB
INPUT = AAAAAAB
N = 7
M = 2
R = 111112
RD = 12
--------------
INPUT = AAAAAAB
INPUT = AAAAAAB
N = 7
M = 3
R = 11112
RD = 12
--------------
INPUT = AAAAAAB
INPUT = AAAAAAB
N = 7
M = 4
R = 1112
RD = 12
--------------
INPUT = AAAAAAB
INPUT = AAAAAAB
N = 7
M = 5
R = 112
RD = 12
--------------
INPUT = AAAAAAB
INPUT = AAAAAAB
N = 7
M = 6
R = 12
RD = 12
--------------
INPUT = AAAAAAB
INPUT = AAAAAAB
N = 7
M = 7
R = 2
RD = 2
--------------
INPUT = AAAAAAC
INPUT = AAAAAAC
N = 7
M = 1
R = 1111111
RD = 1
--------------

For see all of the results, click here to open the result file.

submatricescountmath's People

Stargazers

 avatar  avatar

Watchers

 avatar  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.