Readit News logoReadit News
graphcolorer commented on Fish odor syndrome – A rare metabolic condition that makes sweat smell like fish   livescience.com/health/vi... · Posted by u/Brajeshwar
graphcolorer · 6 months ago
An important character in the great Hindu epic, the Mahabharata, likely had this condition. She was the great-grandmother of the Pandavas and Kauravas and her name was Satyavati. She was also known as Matsyagandhi ("fish-fragrant").

Dead Comment

graphcolorer commented on Ask HN: What problem are you close to solving and how can we help?    · Posted by u/zachrip
oneepic · 4 years ago
Also... is it possible for you to add nodes? Ie split a N>40 node into two nodes.
graphcolorer · 4 years ago
No, though nodes can be deleted -- at a cost equal to the total cost of all the edges that contain it.
graphcolorer commented on Ask HN: What problem are you close to solving and how can we help?    · Posted by u/zachrip
oneepic · 4 years ago
Similar to what another commenter said about time, have you tried a backtracking approach by: (1) coloring the whole graph (let's say you end with 42 colors) (2) start with the highest colored nodes (e.g. N=42, which exceeds your threshold of 40) and (3) greedily remove the lowest-weight edges (or maybe, edges to other high-colored nodes) until you are either all colored with 40 colors or we reach an invalid state (ie node no longer in the graph) -- with the latter you can add another edge back and try again by removing the next-lowest edge.
graphcolorer · 4 years ago
That's what I'm doing now, but the results aren't great. If there's a way to estimate a lower bound on the number of edges to remove, I can figure out if the results aren't great because of the approximation, or because of the nature of the graph...
graphcolorer commented on Ask HN: What problem are you close to solving and how can we help?    · Posted by u/zachrip
sabageti · 4 years ago
What are the needs in time?
graphcolorer · 4 years ago
Can take as long as needed as it only needs to be colored one time. About 10,000 nodes, reasonably dense (about half the nodes will have 1,000+ edges).
graphcolorer commented on Ask HN: What problem are you close to solving and how can we help?    · Posted by u/zachrip
oneepic · 4 years ago
Will the graph ever change? Is this a one-time computation?
graphcolorer · 4 years ago
One time.
graphcolorer commented on Ask HN: What problem are you close to solving and how can we help?    · Posted by u/zachrip
graphcolorer · 4 years ago
I have a graph with weighted edges. I want to remove edges to make the graph colorable with N colors (e.g. N=40) such that the total weight of removed edges is minimized. If I'm able to solve this problem, that will complete a project I've been working on for years now to make a working keyboard for a person I know that has cerebral palsy.

u/graphcolorer

KarmaCake day6August 29, 2021View Original