필터 지우기
필터 지우기

Represent the shortest path from all nodes to the sink.

조회 수: 2 (최근 30일)
Sunil
Sunil 2014년 5월 24일
댓글: Sunil 2014년 5월 28일
The below is an example of various nodes (marked in 1 to 10) in WSN. All the nodes are expected to be sending data to the sink(marked in brown). How do I compute the optimum path and connect them using lines from all the nodes to the sink?
Note:
1. Note, its not that each node, would directly send the data to the Sink, rather it may send the data to its neighboring node and then finally to the sink.
2. The number of nodes and its position is dynamic.
Appreciate an earlier response on this. Would be great, if you could give a code snippet as well.
Thanks in advance,
Sunil Kumar
  댓글 수: 4
Image Analyst
Image Analyst 2014년 5월 24일
What did you try exactly? Attach your code with the paper clip icon. It may elicit more responses if people have something to start with. Also let us know what toolboxes you've bought, particularly if you have any of the optimization toolboxes.
Sunil
Sunil 2014년 5월 24일
I have the following toolboxes. Please let me know, if I need some other tool, inorder to achieve this.
MATLAB
Curve Fitting Toolbox
Database Toolbox
Signal Processing Toolbox
Statistics Toolbox
Attaching the code for reference. Note, Main-shorttestpath.m is the main program
Thanks
Sunil Kumar

댓글을 달려면 로그인하십시오.

답변 (2개)

Mamali
Mamali 2014년 5월 25일
Hi Sunil ,
I think you can run Dijkstra in your topology. see the link below for more info
  댓글 수: 1
Sunil
Sunil 2014년 5월 28일
I am finding it challenging to find the solution using Dijkstra, since I don't have the segment details. All I have is the location details(pixels) of nodes. How do I go ahead with this? Appreciate an high level logic on this.
Thanks a lot!

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2014년 5월 25일
This is a fairly hard problem I think. You could have anywhere from one line segment to 10 line segments. If you have just one, so that all nodes are connected, then this is the traveling salesman problem http://en.wikipedia.org/wiki/Traveling_salesman_problem. So you have to solve that, but you also have to solve for cases where you have 2, 3, ...10 paths to see if maybe their total path lengths are shorter (though I could be wrong - maybe 2 to 10 paths are guaranteed to be longer - I don't know). And for any of them, say 3 paths, there are tons of possible permutations of what nodes are on what path. Sorry but I'm not good enough at optimization to give you advice on how to solve it.
  댓글 수: 1
Sunil
Sunil 2014년 5월 28일
I am finding it challenging to find the solution using Travelling Salesman problem, since I don't have the segment details. All I have is the location details(pixels) of nodes. How do I go ahead with this? Appreciate an high level logic on this.
Thanks a lot!

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by