Skip to content

Implement min_element and max_element algorithm#5

Open
RishabhRD wants to merge 4 commits into
mainfrom
impl_min_max_element
Open

Implement min_element and max_element algorithm#5
RishabhRD wants to merge 4 commits into
mainfrom
impl_min_max_element

Conversation

@RishabhRD

Copy link
Copy Markdown
Member

No description provided.

@RishabhRD RishabhRD requested a review from dabrahams August 27, 2025 18:46
@RishabhRD

Copy link
Copy Markdown
Member Author

@dabrahams we need to think about the semantics of algorithms returning multiple positions. A canonical example is std::minmax_element. For algorithms returning single positions, it can be modelled with a split. But I don't find algorithms returning multiple positions have a clear modelling using splits.

@dabrahams

Copy link
Copy Markdown
Collaborator

It's a partitioning plus a mapping from semantic value (min, max) to partition index, innit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants