-
Notifications
You must be signed in to change notification settings - Fork 1
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
Map coloring algorithm #5
Comments
I think we can split this algorithm into smaller steps: Preliminaries:
where
Notes:
|
That is strange, this feature has more priority than
We have great examples like Ottoman Empire, Holy Roman Empire, Germany, Mongol Empire they conquered almost half of the world. They are the hardest one to color, I think. You are also ignoring the admin level during coloring. My proposal: Step 1 - collect all neighbors, 1-year representationI prefer to use trees instead of graph for 1-year representation. Step 2 - build range of unchanged neighbors for each TE
Step 3 - Build META_TE by using predecessor field.Possibly would cause some problems, because of m2m relationship. If Admin Level changes TE should be colored in a different way.
Step 4 - Grade TE's based on their Admin Level and maximum neighbors.Finding the most easiest and hardest one for coloring. Step 5 - assign color_ids for TEs with largest neighborhood baseStep 6 - build color scheme |
Generate From there, simply color each country with the RGB generated from the above algorithm. |
For me as a partially color blind person this seems logical but not right. There are around 200 countries in the world (right now), so basically it's easier to take at least 256 color scheme. Sample image taken from https://misc.flogisoft.com/bash/tip_colors_and_formatting As you can see they are not so unique after all. For example 106, 142, 136, 172 are almost the same for me. Additionally map color scheme usually matches the brand book of the project UPD: |
Accidentaly overheard about https://en.wikipedia.org/wiki/Four_color_theorem |
From discussion on discord
|
Develop or extend existing algorithm suitable for assigning color id to a PoliticalEntity (PE).
PE is an organization that has claimed some land in special time period
PoliticalEntities has different admin levels it means that country (lvl 2) have some regions (lvl3, lvl4, ...etc) and are part of larger group (lvl1) or groups
PE can be formed out of the existing PE: predecessor of Russain Empire was Tsardom of Russia.
Proposal for MVP:
@ataalik mentioned the graph coloring algorithm
The text was updated successfully, but these errors were encountered: