Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ChromaticNumber with Brooks' theorem #446

Merged

Conversation

wilfwilson
Copy link
Collaborator

@wilfwilson wilfwilson commented Mar 19, 2021

https://en.wikipedia.org/wiki/Brooks'_theorem:

For any connected undirected graph G with maximum degree Δ, the chromatic number of G is at most Δ, unless G is a complete graph or an odd cycle, in which case the chromatic number is Δ + 1

The greedy colouring algorithm can sometimes give Δ + 1 as an upper bound (and maybe more?) when Brooks' theorem gives us just Δ. So let's take the minimum of the two in ChromaticNumber.

@wilfwilson wilfwilson added performance A label for issues or PR related to performance minor A label for PRs or issues that are minor in some sense. labels Mar 19, 2021
@wilfwilson wilfwilson force-pushed the better-chromatic-number-upper-bound branch from 78eb458 to bf9aab0 Compare March 19, 2021 17:13
@wilfwilson wilfwilson added the merge-in-to-master A label for PRs that should be merged into the master branch label Mar 19, 2021
@james-d-mitchell
Copy link
Member

This could be merged into stable-1.4, since I don't think it adds any new features.

@wilfwilson wilfwilson force-pushed the better-chromatic-number-upper-bound branch from bf9aab0 to 36780da Compare March 22, 2021 10:42
@wilfwilson wilfwilson changed the base branch from master to stable-1.4 March 22, 2021 10:42
@wilfwilson wilfwilson removed the merge-in-to-master A label for PRs that should be merged into the master branch label Mar 22, 2021
@wilfwilson wilfwilson force-pushed the better-chromatic-number-upper-bound branch from 36780da to 80b36bc Compare March 22, 2021 10:48
@wilfwilson wilfwilson merged commit 249d25f into digraphs:stable-1.4 Mar 22, 2021
@wilfwilson wilfwilson deleted the better-chromatic-number-upper-bound branch March 22, 2021 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor A label for PRs or issues that are minor in some sense. performance A label for issues or PR related to performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants