Hacker News new | past | comments | ask | show | jobs | submit login

This will not yield a minimal set; in a cycle, it is only necessary to remove at least one word. The problem is thus to delete the minimum number of vertices to remove all cycles. This is the NP-hard Feedback Vertex Set problem. Here's a paper that solves it for a dictionary (there is some more): https://arxiv.org/abs/0911.5703



I checked the comments to check if this paper was mentioned anywhere. Good recommendation.


Looks like you found our answer! Someone's already done the hard work.


This is not necessarily the answer. It's an upper-bound for the answer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: