Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

81%
+7 −0
Q&A How do I find the order that yields the shortest path?

This looks like it's a slightly restricted version of the circular dilation minimization problem in the theory of graph drawing. See, for example, https://doi.org/10.1080/00207168808803629. Specif...

posted 3y ago by r~~‭  ·  edited 3y ago by r~~‭

Answer
#3: Post edited by user avatar r~~‭ · 2020-12-08T22:55:31Z (over 3 years ago)
  • This looks like it's a slightly restricted version of the _circular dilation minimization problem_ in the theory of graph drawing. See, for example, https://doi.org/10.1080/00207168808803629.
  • Specifically, your problem can be expressed as finding a vertex numbering with minimal circular dilation for the graph formed from a vertex for each of your items and an undirected edge for every adjacent pair in your item use order (there can be multiple edges between two vertices, as in the case of B and D in your example).
  • I'm not familiar with a good heuristic for solving this problem, but I think circular graph layout engines sometimes use physical simulations to cut the NP knot. You might try that if researching the literature doesn't come up with anything useful.
  • This looks like it's a slightly restricted version of the _circular dilation minimization problem_ in the theory of [graph drawing](https://en.wikipedia.org/wiki/Graph_drawing). See, for example, https://doi.org/10.1080/00207168808803629.
  • Specifically, your problem can be expressed as finding a vertex numbering with minimal circular dilation for the graph formed from a vertex for each of your items and an undirected edge for every adjacent pair in your item use order (there can be multiple edges between two vertices, as in the case of B and D in your example).
  • I'm not familiar with a good heuristic for solving this problem, but I think circular graph layout engines sometimes use force-based physical simulations to cut the NP knot. You might try that if researching the literature doesn't come up with anything useful.
#2: Post edited by user avatar r~~‭ · 2020-12-08T22:54:18Z (over 3 years ago)
  • This looks like it's a slightly restricted version of the _circular dilation minimization problem_ in the theory of graph layouts. See, for example, https://doi.org/10.1080/00207168808803629.
  • Specifically, your problem can be expressed as finding a vertex numbering with minimal circular dilation for the graph formed from a vertex for each of your items and an undirected edge for every adjacent pair in your item use order (there can be multiple edges between two vertices, as in the case of B and D in your example).
  • I'm not familiar with a good heuristic for solving this problem, but I think circular graph layout engines sometimes use physical simulations to cut the NP knot. You might try that if researching the literature doesn't come up with anything useful.
  • This looks like it's a slightly restricted version of the _circular dilation minimization problem_ in the theory of graph drawing. See, for example, https://doi.org/10.1080/00207168808803629.
  • Specifically, your problem can be expressed as finding a vertex numbering with minimal circular dilation for the graph formed from a vertex for each of your items and an undirected edge for every adjacent pair in your item use order (there can be multiple edges between two vertices, as in the case of B and D in your example).
  • I'm not familiar with a good heuristic for solving this problem, but I think circular graph layout engines sometimes use physical simulations to cut the NP knot. You might try that if researching the literature doesn't come up with anything useful.
#1: Initial revision by user avatar r~~‭ · 2020-12-08T22:53:35Z (over 3 years ago)
This looks like it's a slightly restricted version of the _circular dilation minimization problem_ in the theory of graph layouts. See, for example, https://doi.org/10.1080/00207168808803629.

Specifically, your problem can be expressed as finding a vertex numbering with minimal circular dilation for the graph formed from a vertex for each of your items and an undirected edge for every adjacent pair in your item use order (there can be multiple edges between two vertices, as in the case of B and D in your example).

I'm not familiar with a good heuristic for solving this problem, but I think circular graph layout engines sometimes use physical simulations to cut the NP knot. You might try that if researching the literature doesn't come up with anything useful.