Skip to content

Add ScarcePolynomial #55

@yalishanda42

Description

@yalishanda42
  • Create ScarcePolynomial which should have a memory-efficient implementation for polynomials with fewer terms but larger degrees (e.g. $ x^10000 + x^100 + 1 $).
    • Current problem is that a polynomial is represented as a list of its coefficients (the index is the degree of the corresponding term). A polynomial like x^10000 + x^100 + 1 for example would be represented by a list of length 10001 with 9999 zeroes in it. We can easily see how that is a problem.
  • Write unit tests for it

Metadata

Metadata

Assignees

No one assigned

    Labels

    hacktoberfestParticipants in Hacktoberfest are welcome to contribute!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions