Skip to content

Time complexity for fraction-search-algorithm #1066

Open
@Aeren1564

Description

@Aeren1564

The algorithm described in https://cp-algorithms.com/others/stern_brocot_tree_farey_sequences.html#fraction-search-algorithm works in linear quadratic time in numerator+denominator, but the article claims that it is a "binary search algorithm".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions