Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ceciliachan1979
Copy link
Contributor

Clarify definition of opt(i, j) to specify maximum k among optimal candidates

Description

This PR updates the documentation to clarify the definition of opt(i, j):

  • Previously, it was ambiguous when multiple values of k achieved the optimum.
  • The reference explicitly states that we should take the maximum value of k among all optimal candidates.
  • This change makes the intended behavior explicit and avoids confusion in implementations.

Motivation

Clarifying this definition ensures consistency with the reference and prevents misinterpretation when different values of k yield the same optimum.

Changes

  • Clarified wording in opt(i, j) definition.
  • Specified that the chosen k must be the maximum among all optimal candidates.

The reference is https://dl.acm.org/doi/pdf/10.1145/800141.804691, specifically, when we define $K_c$ on the left column, the reference make it clear we must choose the maximum $k$.

…dates

# Clarify definition of `opt(i, j)` to specify maximum `k` among optimal candidates

## Description
This PR updates the documentation to clarify the definition of `opt(i, j)`:

- Previously, it was ambiguous when multiple values of `k` achieved the optimum.  
- The reference explicitly states that we should take the **maximum** value of `k` among all optimal candidates.  
- This change makes the intended behavior explicit and avoids confusion in implementations.  

## Motivation
Clarifying this definition ensures consistency with the reference and prevents misinterpretation when different values of `k` yield the same optimum.  

## Changes
- Clarified wording in `opt(i, j)` definition.  
- Specified that the chosen `k` must be the maximum among all optimal candidates.  

> The reference is https://dl.acm.org/doi/pdf/10.1145/800141.804691, specifically, when we define $K_c$ on the left column.
@mhayter
Copy link
Contributor

mhayter commented Sep 13, 2025

I believe you are correct. Good catch. Thank you!

@mhayter mhayter merged commit 7d314c4 into cp-algorithms:main Sep 13, 2025
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