Skip to content

Time complexity of floor_sum #101

Closed
@rsk0315

Description

@rsk0315

The document says O(log(m+a)), but now (by #92) m+a may be negative or zero. I suggest O(log(a mod m)).

By the way, maybe, its complexity could be bounded by O(log(min(n, a mod m))). It might be wrong because I guessed just intuitively (and empirically). So I'm glad if anyone can analyze this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions