Cody

# Problem 458. Parcel Routing

Solution 1656849

Submitted on 23 Oct 2018 by try12345
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
[route d] = parcel_route( 1, 5, zeros( 5 ) ) assert(route == -1 && d == -1);

route = -1 d = -1

2   Pass
[route d] = parcel_route( 1, 2, [0 0.320527862039621 0 0 0;0.320527862039621 0 0 0 0.85044688801616;0 0 0 0 0;0 0 0 0 0;0 0.85044688801616 0 0 0] ); assert( isequal(route,[1 2]) && abs( d - 0.320528 ) < 1e-4 );

3   Pass
[route d] = parcel_route( 4, 2, [0 0 0 0 0.648056184801628;0 0 0.168504735306137 0 0;0 0.168504735306137 0 0 0;0 0 0 0 0;0.648056184801628 0 0 0 0] ); assert( isequal(route,-1) && abs( d - -1 ) < 1e-4 );

4   Pass
[route d] = parcel_route( 3, 3, [0 0 0 1.07077622171054 0.00497624606093106;0 0 0 0 0;0 0 0 0 0;1.07077622171054 0 0 0 0;0.00497624606093106 0 0 0 0] ); assert( isequal(route,3) && abs( d - 0 ) < 1e-4 );

5   Pass
[route d] = parcel_route( 5, 2, [0 0 0.478447257684744 0.52778921303553 0;0 0 0 0.344727452766697 0;0.478447257684744 0 0 0 0;0.52778921303553 0.344727452766697 0 0 0;0 0 0 0 0] ); assert( isequal(route,-1) && abs( d - -1 ) < 1e-4 );

6   Pass
[route d] = parcel_route( 1, 4, [0 0 0 0 0;0 0 0 0 0;0 0 0 0 0;0 0 0 0 0;0 0 0 0 0] ); assert( isequal(route,-1) && abs( d - -1 ) < 1e-4 );

7   Pass
[route d] = parcel_route( 10, 5, [0 0 0 0 0.758920911298127 1.17184862472796 0 0 0 0;0 0 0 0.229051389055984 0 0 0.110344033764499 0 0 0;0 0 0 0 0 0 0 0 0 0;0 0.229051389055984 0 0 0 0 0 0 0 0;0.758920911298127 0 0 0 0 0 0.582786870390757 0 0 0.266149081187709;1.17184862472796 0 0 0 0 0 0.91437757836659 0 0 0.928664694998184;0 0.110344033764499 0 0 0.582786870390757 0.91437757836659 0 0.72845914907191 0.440667818657679 0.0752998054887686;0 0 0 0 0 0 0.72845914907191 0 0 0;0 0 0 0 0 0 0.440667818657679 0 0 0.72584117080215;0 0 0 0 0.266149081187709 0.928664694998184 0.0752998054887686 0 0.72584117080215 0] ); assert( isequal(route,[10 5]) && abs( d - 0.266149 ) < 1e-4 );

8   Pass
[route d] = parcel_route( 7, 3, [0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0;0 0 0 0.348270614748404 0 0.963402246386651 0 0 0 0;0 0 0.348270614748404 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0.00647302663148808 0 0;0 0 0.963402246386651 0 0 0 0 1.11338837090812 0 0;0 0 0 0 0 0 0 0 0 0;0 0 0 0 0.00647302663148808 1.11338837090812 0 0 0 0;0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0] ); assert( isequal(route,-1) && abs( d - -1 ) < 1e-4 );

9   Pass
[route d] = parcel_route( 4, 7, [0 0 0.529236850857286 0 0 0 1.60144982503606 0 0 0;0 0 0 0 0 0 0.828441215877115 0 0 0;0.529236850857286 0 0 0.0279102825979989 0 0 0 0 0 0.0544746812572747;0 0 0.0279102825979989 0 0 0 0 0 0 0;0 0 0 0 0 1.04094484718858 0 0 0 0;0 0 0 0 1.04094484718858 0 0 0 0 0.124040053577104;1.60144982503606 0.828441215877115 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0.37043522751259;0 0 0.0544746812572747 0 0 0.124040053577104 0 0 0.37043522751259 0] ); assert( isequal(route,[4 3 1 7]) && abs( d - 2.1586 ) < 1e-4 );

10   Pass
[route d] = parcel_route( 4, 7, [0 0 0 0 0 0 0 0 0 0;0 0 0 0 0.577543761888686 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0.124487323633357 0 0 0.679813903514902;0 0.577543761888686 0 0 0 0 0.560623889702786 0 0 0;0 0 0 0 0 0 0 0 0 0;0 0 0 0.124487323633357 0.560623889702786 0 0 0 0.250828758360099 0;0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0.250828758360099 0 0 0.914651700028183;0 0 0 0.679813903514902 0 0 0 0 0.914651700028183 0] ); assert( isequal(route,[4 7]) && abs( d - 0.124487 ) < 1e-4 );

11   Pass
[route d] = parcel_route( 1, 9, [0 0 0.210714289971845 0 0 0.655795786759233 0 0 0.417975370686535 0.0762383289683841;0 0 0 0 0 0 0 0 0 0;0.210714289971845 0 0 0 0 0 0.627639413184948 0.546973506820504 0 0;0 0 0 0 0 0.44290978142888 0 0 0 0;0 0 0 0 0 0 0.494959375382896 0.199417369123429 0.61193318690704 0;0.655795786759233 0 0 0.44290978142888 0 0 0 0 0.295901565877421 0;0 0 0.627639413184948 0 0.494959375382896 0 0 0 0 0;0 0 0.546973506820504 0 0.199417369123429 0 0 0 0 0.882898432991531;0.417975370686535 0 0 0 0.61193318690704 0.295901565877421 0 0 0 0.0999710063468799;0.0762383289683841 0 0 0 0 0 0 0.882898432991531 0.0999710063468799 0] ); assert( isequal(route,[1 10 9]) && abs( d - 0.176209 ) < 1e-4 );

12   Pass
[route d] = parcel_route( 12, 3, [0 0.139438875035701 0.112367141305958 0 0 0 0 0 0 0.742115072015769 0 0 0.244537467584915 0 0;0.139438875035701 0 0.135942047224331 0 0 0 0 0 0 0 0.374140881779805 0 0.217860680093506 0.379818098539566 1.17229854239237;0.112367141305958 0.135942047224331 0 0 0 0 0 1.7792137360137 0.350752848520651 0 0 0.284985494377118 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0.161446305533344 0 0 0 0.183948436622344 0 0 0;0 0 1.7792137360137 0 0 0 0.161446305533344 0 0 0 0 0 0 0 0;0 0 0.350752848520651 0 0 0 0 0 0 0 0 0 0 0 0.362973369969354;0.742115072015769 0 0 0 0 0 0 0 0 0 0.263865914379949 0 0 0 0;0 0.374140881779805 0 0 0 0 0 0 0 0.263865914379949 0 0 0 0 0;0 0 0.284985494377118 0 0 0 0.183948436622344 0 0 0 0 0 0 0 0;0.244537467584915 0.217860680093506 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0.379818098539566 0 0 0 0 0 0 0 0 0 0 0 0 1.863621808387;0 1.17229854239237 0 0 0 0 0 0 0.362973369969354 0 0 0 0 1.863621808387 0] ); assert( isequal(route,[12 3]) && abs( d - 0.284985 ) < 1e-4 );

13   Pass
[route d] = parcel_route( 14, 13, [0 0 0 0.0850075668378245 0 0 0 0 0.0463952689981919 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0.0850075668378245 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0.831785345865625 0 0 0 0 0 0 0 0.300824537605104 0;0 0 0 0 0.831785345865625 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0.316676635592728 0 0 0.18465657297998 0 0;0.0463952689981919 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0.316676635592728 0 0 0 0 0 0 2.01596808102817;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0.735349103904233 0 0;0 0 0 0 0 0 0 0.18465657297998 0 0 0 0.735349103904233 0 0 0;0 0 0 0 0.300824537605104 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 2.01596808102817 0 0 0 0 0] ); assert( isequal(route,-1) && abs( d - -1 ) < 1e-4 );

14   Pass
[route d] = parcel_route( 8, 8, [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0.669844066951192 0 0 1.79425332134151 0 0 0 0;0 0 0 0 0 0.354813543185228 0.350829365088585 0.334017411457367 0 0 0.750194269879854 0 0 0 0.837083783283494;0 0 0 0 0 0 0 0 0 0 0 0.7666462425288 0 0 0;0 0 0 0 0 0 0 0 0 0 0.335432927184154 0.290662441159473 0 0 0;0 0 0.354813543185228 0 0 0 0 0 0 0 0 0.612746104915618 0 1.3702409817804 0;0 0 0.350829365088585 0 0 0 0 0 0 0 0 0 0 0 0;0 0.669844066951192 0.334017411457367 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 1.79425332134151 0.750194269879854 0 0.335432927184154 0 0 0 0 0 0 0 0 0 0;0 0 0 0.7666462425288 0.290662441159473 0.612746104915618 0 0 0 0 0 0 0.600235691901178 0 0;0 0 0 0 0 0 0 0 0 0 0 0.600235691901178 0 0 0;0 0 0 0 0 1.3702409817804 0 0 0 0 0 0 0 0 0.25725306655894;0 0 0.837083783283494 0 0 0 0 0 0 0 0 0 0 0.25725306655894 0] ); assert( isequal(route,8) && abs( d - 0 ) < 1e-4 );

15   Pass
[route d] = parcel_route( 9, 2, [0 0 0 0 0 0 0 0.216161539093326 0 0 0 0 0 0 0;0 0 0 0.154899548332433 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0.195632123891572 0 0.638112022611646 0 0;0 0.154899548332433 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0.924920233869358 0 0 0 0 0 0 0.225753938901222;0 0 0 0 0 0 0 0 0 0 0 0.105130198814148 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0.216161539093326 0 0 0 0.924920233869358 0 0 0 0.283480661544537 0 0 0 0 0 0;0 0 0 0 0 0 0 0.283480661544537 0 0 0.860820315822094 0 0 0.114189406386242 0;0 0 0 0 0 0 0 0 0 0 0.777006911310097 0.0395282910845656 0.559642782958394 0.0374763085984708 0;0 0 0.195632123891572 0 0 0 0 0 0.860820315822094 0.777006911310097 0 0.107327989339846 0 0 0;0 0 0 0 0 0.105130198814148 0 0 0 0.0395282910845656 0.107327989339846 0 0 0 0;0 0 0.638112022611646 0 0 0 0 0 0 0.559642782958394 0 0 0 0 0;0 0 0 0 0 0 0 0 0.114189406386242 0.0374763085984708 0 0 0 0 0;0 0 0 0 0.225753938901222 0 0 0 0 0 0 0 0 0 0] ); assert( isequal(route,-1) && abs( d - -1 ) < 1e-4 );

16   Pass
[route d] = parcel_route( 6, 8, [0 1.00600776349789 0 0 0.409642943366229 0 0 0 0 0 0 0 0.780942905018081 0.218269812307052 0;1.00600776349789 0 0 0 0 0 0 0 0 0.604439587022491 0 0 0 0 0;0 0 0 2.19497071462911 0 0.384068674620751 0 0 0 0.752596352506117 0.210553220187945 0 0 0 0.101200876472261;0 0 2.19497071462911 0 0 0 0 0 0 0 0 0.0821684991109088 0 0 1.39540244685607;0.409642943366229 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0.384068674620751 0 0 0 0.0278385656290563 0 0 0 0 0 0 0 0;0 0 0 0 0 0.0278385656290563 0 0 0 0 0.314664537582249 0 0 0 0.157551652892199;0 0 0 0 0 0 0 0 0 0 1.37753279184511 0 0 0.647734508061038 0.538120114299927;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0.604439587022491 0.752596352506117 0 0 0 0 0 0 0 0.38099752988379 0 0 0 0;0 0 0.210553220187945 0 0 0 0.314664537582249 1.37753279184511 0 0.38099752988379 0 0 0 0 0;0 0 0 0.0821684991109088 0 0 0 0 0 0 0 0 0.724941186609613 0 0;0.780942905018081 0 0 0 0 0 0 0 0 0 0 0.724941186609613 0 0 0;0.218269812307052 0 0 0 0 0 0 0.647734508061038 0 0 0 0 0 0 0;0 0 0.101200876472261 1.39540244685607 0 0 0.157551652892199 0.538120114299927 0 0 0 0 0 0 0] ); assert( isequal(route,[6 7 15 8]) && abs( d - 0.72351 ) < 1e-4 );

17   Pass
[route d] = parcel_route( 15, 1, [0 0 0 0 0 0 0 0 0 0 0 0.444956179153313 0.694837045312089 0 0 0 1.21296662658388 0 1.56620351515086 0.139996151546743;0 0 0.436509042497808 0 0 0 0 0 0 0.51021617110356 0.382775864014207 0 0 0 0 0 0 0 0.0458660640982067 0;0 0.436509042497808 0 0.142843784706697 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0.142843784706697 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0.923358421898822 0 0 0 0 0 0 0.535622573665002 0 0 0.0623807988546017 0 0 0 0;0 0 0 0 0.923358421898822 0 0 0 0 0 0 0 0 0 0.0225268450194125 0.789248499651178 0.131644262096824 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0.157622272676696 0.474149476188578 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 1.38990078830045 0 0 0 0 0.691403775437505 0;0 0.51021617110356 0 0 0 0 0 0 0 0 0.597507997139564 0 0 0 0.354205526419423 0 0 0 0 0;0 0.382775864014207 0 0 0 0 0 0 0 0.597507997139564 0 0 0 0.659672915756231 0 0 0 0 0 0;0.444956179153313 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.138835508200668;0.694837045312089 0 0 0 0.535622573665002 0 0.157622272676696 0 0 0 0 0 0 0 0 0.112112626230952 0 0 0 0.0843937952650982;0 0 0 0 0 0 0.474149476188578 0 1.38990078830045 0 0.659672915756231 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0.0225268450194125 0 0 0 0.354205526419423 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0.0623807988546017 0.789248499651178 0 0 0 0 0 0 0.112112626230952 0 0 0 0 0 0 2.40412068693751;1.21296662658388 0 0 0 0 0.131644262096824 0 0 0 0 0 0 0 0 0 0 0 0 0.332961917093088 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.464569385286 0;1.56620351515086 0.0458660640982067 0 0 0 0 0 0 0.691403775437505 0 0 0 0 0 0 0 0.332961917093088 1.464569385286 0 0;0.139996151546743 0 0 0 0 0 0 0 0 0 0 0.138835508200668 0.0843937952650982 0 0 2.40412068693751 0 0 0 0] ); assert( isequal(route,[15 6 16 13 20 1]) && abs( d - 1.14828 ) < 1e-4 );

18   Pass
[route d] = parcel_route( 6, 9, [0 0.366176160541789 0.786653302253499 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.21056171145861;0.366176160541789 0 0 0 0 0 0 0 0 1.00794652016003 0 0 0 0 0 0 0 0 0 0;0.786653302253499 0 0 0 0.00852440175782365 0 0 0 0 0 0.17749671083585 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.104971160045632 0 0.612122585766863 0 0.283798036821908;0 0 0.00852440175782365 0 0 0 0.643083445674635 0 0 0 1.48191061231689 0 0 0 0.200776975353452 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.20656027667801 0 0 0;0 0 0 0 0.643083445674635 0 0 0 0.0293301078099069 0 0 0.0684877514911584 0.244866042619905 0 0 0 0 0.844967783108164 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0.0293301078099069 0 0 0 0 0.112122931478046 0 0 0 0.904924565740344 0 0 0 0;0 1.00794652016003 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0.17749671083585 0 1.48191061231689 0 0 0 0 0 0 0.356911349006201 0 0 0.157837394902406 0 0 0 0 0;0 0 0 0 0 0 0.0684877514911584 0 0.112122931478046 0 0.356911349006201 0 0.682956498987976 0.369934947078526 0 0 0 0 0 0;0 0 0 0 0 0 0.244866042619905 0 0 0 0 0.682956498987976 0 0 0 0 1.43719870645473 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0.369934947078526 0 0 0 0 0 0 0 0;0 0 0 0 0.200776975353452 0 0 0 0 0 0.157837394902406 0 0 0 0 0.0962643536575907 0 0 0 0;0 0 0 0.104971160045632 0 0 0 0 0.904924565740344 0 0 0 0 0 0.0962643536575907 0 0 0 0 0.884861315533158;0 0 0 0 0 1.20656027667801 0 0 0 0 0 0 1.43719870645473 0 0 0 0 0.00316254045496533 0.917601066178612 0;0 0 0 0.612122585766863 0 0 0.844967783108164 0 0 0 0 0 0 0 0 0 0.00316254045496533 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.917601066178612 0 0 0;0.21056171145861 0 0 0.283798036821908 0 0 0 0 0 0 0 0 0 0 0 0.884861315533158 0 0 0 0] ); assert( isequal(route,[6 17 18 7 9]) && abs( d - 2.08402 ) < 1e-4 );

19   Pass
[route d] = parcel_route( 15, 8, [0 0 0 0 0 0 0 0.444927230771171 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0.0904807891398611 0 0 0.117980802815763 0 0 0 0 0 0 0 0 0 0 0.786791961925432 0 0;0 0 0 0 0 0 0 0 0 0.159132007464481 0.110433064086588 0 0 0 0 0 0 0 0 0.139982926657546;0 0.0904807891398611 0 0 0.388870980511861 0 0 0 0 0 0 0.973527639623757 0 0 0 0 0 0 0 0;0 0 0 0.388870980511861 0 0 0 0.305597627987039 0 0 0 0 0.027077532916115 0 0 0 0 0 0.290796760442986 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0.117980802815763 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.27266472620458 0.665594866955372 0 0.626568354787985;0.444927230771171 0 0 0 0.305597627987039 0 0 0 0 0 0 0 0 0 0 0 0 0 0.498229667608556 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0.159132007464481 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0.110433064086588 0 0 0 0 0 0 0 0 0 0.611004915345871 0 0 0 0.561899811991367 0 0 0;0 0 0 0.973527639623757 0 0 0 0 0 0 0 0 0.949329689605504 0 0 0 0 0 0 0;0 0 0 0 0.027077532916115 0 0 0 0 0 0.611004915345871 0.949329689605504 0 0 0 0 0 0.45822991145669 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.916926430883478 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0944227233455792;0 0 0 0 0 0 1.27266472620458 0 0 0 0.561899811991367 0 0 0 0 0 0 0.0123263072768274 0 0;0 0.786791961925432 0 0 0 0 0.665594866955372 0 0 0 0 0 0.45822991145669 0 0 0 0.0123263072768274 0 0.708053638455894 0;0 0 0 0 0.290796760442986 0 0 0.498229667608556 0 0 0 0 0 0.916926430883478 0 0 0 0.708053638455894 0 0;0 0 0.139982926657546 0 0 0 0.626568354787985 0 0 0 0 0 0 0 0 0.0944227233455792 0 0 0 0] ); assert( isequal(route,-1) && abs( d - -1 ) < 1e-4 );

20   Pass
[route d] = parcel_route( 5, 4, [0 0 0 0 0 0 0 0 0 0.482056160228392 0 0 0 0 0 0 0 0 0.00508309589200806 0;0 0 0.342764171753101 0 0.592230924022738 0 0 0 0 0 0 0 0 0 0 0 0.616196530219501 0 0.105964156030294 0;0 0.342764171753101 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.06756913797405 0 0 0 0 0;0 0.592230924022738 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 1.75169005582658 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0.198256254136309 0 0.117040404671406 0.742253008190119 0 0 0 0 0 0 0 0 0;0 0 0 0 0 1.75169005582658 0.198256254136309 0 0 0.193487168668438 0 0 0 0 0 0.213470445629309 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0.672768253513765 0 0 0 0 0 0 0 0;0.482056160228392 0 0 0 0 0 0.117040404671406 0.193487168668438 0 0 0.182397544709499 0 0 0 0 0 0 0 0.352313653363684 0;0 0 0 0 0 0 0.742253008190119 0 0 0.182397544709499 0 0.863897537114491 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0.672768253513765 0 0.863897537114491 0 0 0 0 0 0.849422540372472 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.126177070732391 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 1.06756913797405 0 0 0 0 0 0 0 0 0.126177070732391 0 0 0 0 0.810675752838635 0.192588746332897 0;0 0 0 0 0 0 0 0.213470445629309 0 0 0 0 0 0 0 0 0 0 0 0;0 0.616196530219501 0 0 0 0 0 0 0 0 0 0.849422540372472 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.810675752838635 0 0 0 0 0;0.00508309589200806 0.105964156030294 0 0 0 0 0 0 0 0.352313653363684 0 0 0 0 0.192588746332897 0 0 0 0 0.473102743220109;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.473102743220109 0] ); assert( isequal(route,[5 2 19 15 4]) && abs( d - 1.95835 ) < 1e-4 );

21   Pass
[route d] = parcel_route( 18, 3, [0 0 0 0 0 0 0.588131422298983 0 0 0 0 0 0 0 0 0 0 0 0.411615488806083 0;0 0 0 0 0 0 0 0 0 0.148093137302263 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0.513126690185934 0.314081294727961 0 0 0 0 0 0 0 0 0 0 0.105622237791164 0 0;0 0 0 0 0.0233388222703319 0 0 0.620281238898666 0 0 0 1.01777898612281 0 0 1.02802169259185 0 0 0 0 0.829878923718159;0 0 0 0.0233388222703319 0 0.103664033766553 0 0 0 0 0.800687507355036 0.724909646173659 0 0 0 0 0 0 0 0;0 0 0.513126690185934 0 0.103664033766553 0 0 0 0 0 0 0 0.51932792913499 0.111508583765534 0 0 0 0 0 0;0.588131422298983 0 0.314081294727961 0 0 0 0 0 0.632615202648636 0 0 0 1.12039468709595 0 0 0 0 0 0 0;0 0 0 0.620281238898666 0 0 0 0 0.665853755155897 0 0.443519419164187 0 0.0287540443670959 0 0 0 0 0 0 0;0 0 0 0 0 0 0.632615202648636 0.665853755155897 0 0 0 0 0 0 0 0 0 0 0 0.341087071649035;0 0.148093137302263 0 0 0 0 0 0 0 0 0.0523829918450132 0 0 0 0 0 0 0.401940201122634 0.691832558529399 0;0 0 0 0 0.800687507355036 0 0 0.443519419164187 0 0.0523829918450132 0 0.491690939364275 0 0.757845451055127 0 0 0 0.024463668194654 0 0;0 0 0 1.01777898612281 0.724909646173659 0 0 0 0 0 0.491690939364275 0 0 0 0 0 0 0 0 1.02836268723464;0 0 0 0 0 0.51932792913499 1.12039468709595 0.0287540443670959 0 0 0 0 0 0 0 0 0 0 0 0.366143225287491;0 0 0 0 0 0.111508583765534 0 0 0 0 0.757845451055127 0 0 0 0.223088374978438 0 0 0 0 0;0 0 0 1.02802169259185 0 0 0 0 0 0 0 0 0 0.223088374978438 0 0.344909749483892 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.344909749483892 0 0 0 0.353158597614942 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0.105622237791164 0 0 0 0 0 0 0.401940201122634 0.024463668194654 0 0 0 0 0 0 0 0 0;0.411615488806083 0 0 0 0 0 0 0 0 0.691832558529399 0 0 0 0 0 0.353158597614942 0 0 0 0.849677928981906;0 0 0 0.829878923718159 0 0 0 0 0.341087071649035 0 0 1.02836268723464 0.366143225287491 0 0 0 0 0 0.849677928981906 0] ); assert( isequal(route,[18 3]) && abs( d - 0.105622 ) < 1e-4 );

22   Pass
[route d] = parcel_route( 17, 23, [0 0.151141399637051 0 0 0 0 0 0 0 0 0 0.105216194021975 0 0 0 0 0 0.437381445735918 0 0 0.949941070771521 0 0 0 0;0.151141399637051 0 0 0 0 0 0 0 1.22583368379244 0 0 0.079829221583307 0.71041636270324 0 0 0 0.1075924794072 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 1.21948687450578 0 0.567263036089771 0 0 0 0 0 0.857795458880245 0 0 0 0 0.731569267553795 0 0 0;0 0 0 0 0 0 0.186039341309778 0 0 0 0 0 0 0 0 0 0 2.00348310018009 0 0 0 0 0 0 0;0 0 0 0 0 1.32070145417138 0 0 0 0 0 0 0 0 0 0 0 0.430765092398605 0 0 0 0 0 0.46856479561555 0;0 0 0 0 1.32070145417138 0 0 0.203767017753022 0 0 0 0 0 0 0.487213897131877 0 0 0.896335225888555 0 0 0 0 0 0 0;0 0 0 0.186039341309778 0 0 0 0 0 0 0 0 0.406945507381253 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0.203767017753022 0 0 0.15769661193131 0 0.65001597680104 0 0 0 0 0 0 0.15666137867965 0 0 0 0 0.723509833846064 0 0;0 1.22583368379244 1.21948687450578 0 0 0 0 0.15769661193131 0 0 0 0 0 0 0 0 0.508542446617735 0 0 0.696934855529271 0.169312519482881 0 0.00704092733099992 0 0;0 0 0 0 0 0 0 0 0 0 0 0 1.08493079525094 0.214254564261975 0 0.425013648805044 0 0 0 0 0 0 0 0 0.00543872970590864;0 0 0.567263036089771 0 0 0 0 0.65001597680104 0 0 0 0 0 0 0 0 0.696979111426999 0.525282567629852 0 0.621146400617813 1.20050590589561 0 0 0 0;0.105216194021975 0.079829221583307 0 0 0 0 0 0 0 0 0 0 0.459862031186997 0 0 0 0 0 0 0.698687249438191 0 0 0.00200957746053532 0 0;0 0.71041636270324 0 0 0 0 0.406945507381253 0 0 1.08493079525094 0 0.459862031186997 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0.214254564261975 0 0 0 0 0.380308744719566 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0.487213897131877 0 0 0 0 0 0 0 0.380308744719566 0 0 0.0449909078512449 0 0 1.22341039971646 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0.425013648805044 0 0 0 0 0 0 0 0 0 0 0 0 1.43760755773283 0.719177032769178 0;0 0.1075924794072 0.857795458880245 0 0 0 0 0 0.508542446617735 0 0.696979111426999 0 0 0 0.0449909078512449 0 0 0 0 0 0 0 0 0 0;0.437381445735918 0 0 2.00348310018009 0.430765092398605 0.896335225888555 0 0.15666137867965 0 0 0.525282567629852 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0.696934855529271 0 0.621146400617813 0.698687249438191 0 0 1.22341039971646 0 0 0 0 0 1.1519343197436 0 0 0 0;0.949941070771521 0 0 0 0 0 0 0 0.169312519482881 0 1.20050590589561 0 0 0 0 0 0 0 0 1.1519343197436 0 0 0 0 0.214330337662627;0 0 0.731569267553795 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0.723509833846064 0.00704092733099992 0 0 0.00200957746053532 0 0 0 1.43760755773283 0 0 0 0 0 0 0 0 0;0 0 0 0 0.46856479561555 0 0 0 0 0 0 0 0 0 0 0.719177032769178 0 0 0 0 0 0 0 0 0.649429697531317;0 0 0 0 0 0 0 0 0 0.00543872970590864 0 0 0 0 0 0 0 0 0 0 0.214330337662627 0 0 0.649429697531317 0] ); assert( isequal(route,[17 2 12 23]) && abs( d - 0.189431 ) < 1e-4 );

23   Pass
[route d] = parcel_route( 2, 9, [0 0 0 0 0 0.390568942736463 0.253317405921882 0 0 0 0 0 0 0 0 0.035303866587423 0 0.0932427029924401 0 0.228317786309953 0 0 0 0 0;0 0 0 0 0 0 0.22325539367323 0.0737968434096563 0 0.0216391156829114 1.01817561468837 0 0 0.166613690540579 0 0 0 0 0 0.0929136548216463 0 0 0 0 0;0 0 0 0 0 0.324975382720294 0 0 0 0 0 0 0 0 0.257683850031889 0 0 0 0.818836795828793 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0.0227807501033899 0 0 0 0 0.254392094407223 0 0 0 0 0 0.499630884751228 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0.645309316664204 0 0 0 0 0 0.377002225744615 0 0 0 0 0;0.390568942736463 0 0.324975382720294 0 0 0 0 0 0 0 0 0.381625987614713 0.187530187877611 0 0 0 0 0 1.03662835165178 0 0 0 0 0 0;0.253317405921882 0.22325539367323 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.420116352005782 0.288516971344659 0 0 0 0 0.290423766876168 0;0 0.0737968434096563 0 0 0 0 0 0 0 0 0 0 0 1.14302504189143 0 0.894497023541543 0 0 0 0 0 0 0.181212342324972 0 0.4790219658659;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.66947645498941 0 0 0 0 0 0 0 0.881432911415172 0.190738003819626 0;0 0.0216391156829114 0 0 0 0 0 0 0 0 0 0 0 0 0 0.406383564162139 0 0 0 0 0 0 0 0 0.0727730905533963;0 1.01817561468837 0 0 0 0 0 0 0 0 0 0.968244418446258 0 0 0.528273242216383 0.125653272829919 0 0 0 0 0 0 0 0 0;0 0 0 0.0227807501033899 0 0.381625987614713 0 0 0 0 0.968244418446258 0 0 0 0 0.545221500471632 0 0 0.602095719309548 0 0 0 0 0 0;0 0 0 0 0 0.187530187877611 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.926256705235548 0 0 0 0;0 0.166613690540579 0 0 0.645309316664204 0 0 1.14302504189143 0 0 0 0 0 0 0 0 0 0.21560951711239 0 0 0 0 0 0 0;0 0 0.257683850031889 0 0 0 0 0 0.66947645498941 0 0.528273242216383 0 0 0 0 0 0 0 0 0 0.213055228450905 0 0 0 0;0.035303866587423 0 0 0 0 0 0 0.894497023541543 0 0.406383564162139 0.125653272829919 0.545221500471632 0 0 0 0 0.450996873658263 0 0 0 0 0 0 0 0;0 0 0 0.254392094407223 0 0 0 0 0 0 0 0 0 0 0 0.450996873658263 0 0 0 0 0 0 0.219529444302005 0 0;0.0932427029924401 0 0 0 0 0 0.420116352005782 0 0 0 0 0 0 0.21560951711239 0 0 0 0 0 0 0 0.863470148104069 0 0.444628451921207 0;0 0 0.818836795828793 0 0 1.03662835165178 0.288516971344659 0 0 0 0 0.602095719309548 0 0 0 0 0 0 0 0 0 0.109259232718513 0 0 0;0.228317786309953 0.0929136548216463 0 0 0.377002225744615 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.615496286883062;0 0 0 0 0 0 0 0 0 0 0 0 0.926256705235548 0 0.213055228450905 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.863470148104069 0.109259232718513 0 0 0 0 0.0137884729469751 0;0 0 0 0.499630884751228 0 0 0 0.181212342324972 0.881432911415172 0 0 0 0 0 0 0 0.219529444302005 0 0 0 0 0 0 0.365687691203556 0;0 0 0 0 0 0 0.290423766876168 0 0.190738003819626 0 0 0 0 0 0 0 0 0.444628451921207 0 0 0 0.0137884729469751 0.365687691203556 0 0;0 0 0 0 0 0 0 0.4790219658659 0 0.0727730905533963 0 0 0 0 0 0 0 0 0 0.615496286883062 0 0 0 0 0] ); assert( isequal(route,[2 7 24 9]) && abs( d - 0.704417 ) < 1e-4 );

24   Pass
[route d] = parcel_route( 12, 4, [0 0 0 0 0 0.714172260222902 0 0 0 0 0 0 0 0 0 0 0 0 0 0.361655390928043 0 0 0 0 0;0 0 0 0 0 0.181492418867339 0 0 0 0 0 0 0 0 0 0 0 0 0.22307965545124 0 0 0 0 0 0.779096496125678;0 0 0 0 0 0 0.47292346615082 0 0 0.168841046075892 0 0 0 0 0 0 0 0 0 0.0217708463553388 0 0 0.667747131809592 0 0;0 0 0 0 0 0 0 0.57532352865356 0 0 1.14531063150095 0 0 0 0 0 0 0 0 1.81120439254402 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0.347520308679668 0 0 0 0 1.19301977580358 0 0.820270346367214 0 0 0.0596854204267023 0 0.365147722552969 0.160828167983497 0;0.714172260222902 0.181492418867339 0 0 0 0 0.993473525288174 0 0 0 0 0 0 0 0 0 0 0 0 0.900267645686867 0 0 0 0 0;0 0 0.47292346615082 0 0 0.993473525288174 0 0 0 0 0.303524976604928 0 0 0.988108387042638 0 0 0 0 1.09908596860658 0 0 0 0 0 0;0 0 0 0.57532352865356 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0496932258637628 0 0 0 0 0 0 0.220051533000778 0 0 0;0 0 0.168841046075892 0 0 0 0 0 0 0 0 0 0.415893111213311 0 0 0 0 0 0 0 0 0 0 0.252874847836154 0.7525160069564;0 0 0 1.14531063150095 0.347520308679668 0 0.303524976604928 0 0 0 0 0 0.315427799185682 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0.0659140954680451 0.229430180128888 0 0 0 1.02421541676855 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0.415893111213311 0.315427799185682 0 0 0 1.43148800286315 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0.988108387042638 0 0 0 0 0.0659140954680451 0 0 0 0 0.0723048054691602 0.570598773372364 0 0 0 0 0 0 0.816798020448907;0 0 0 0 0 0 0 0 0.0496932258637628 0 0 0.229430180128888 1.43148800286315 0 0 0.0969052461008522 0 0 0.562394406606289 0 0 0 0 0 0;0 0 0 0 1.19301977580358 0 0 0 0 0 0 0 0 0 0.0969052461008522 0 0.830027198843182 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0.0723048054691602 0 0.830027198843182 0 0 0 0 0.471570888980097 0 0 0 0;0 0 0 0 0.820270346367214 0 0 0 0 0 0 0 0 0.570598773372364 0 0 0 0 0 0 0 0 0 0 0;0 0.22307965545124 0 0 0 0 1.09908596860658 0 0 0 0 1.02421541676855 0 0 0.562394406606289 0 0 0 0 0 0 0 0 0 0;0.361655390928043 0 0.0217708463553388 1.81120439254402 0 0.900267645686867 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0.0596854204267023 0 0 0 0 0 0 0 0 0 0 0 0.471570888980097 0 0 0 0 0.920738174557066 0 0 0;0 0 0 0 0 0 0 0 0.220051533000778 0 0 0 0 0 0 0 0 0 0 0 0.920738174557066 0 0 0 0;0 0 0.667747131809592 0 0.365147722552969 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.431353900603143;0 0 0 0 0.160828167983497 0 0 0 0 0.252874847836154 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.139899289183316;0 0.779096496125678 0 0 0 0 0 0 0 0.7525160069564 0 0 0 0.816798020448907 0 0 0 0 0 0 0 0 0.431353900603143 0.139899289183316 0] ); assert( isequal(route,[12 14 17 21 5 11 4]) && abs( d - 2.16231 ) < 1e-4 );

25   Pass
[route d] = parcel_route( 21, 9, [0 1.30397831279197 0 0 0 0 0 0 0.205205702932437 0 0 0 0 0.462991342326146 0 0.0919395070383298 0 0 0 0 0 0 0 0.788285106392582 0;1.30397831279197 0 0 0 0 1.05960547137835 0 0 0.153644616706166 0 0 0.860262579703983 0 0 0 0 0 0 0 0 0 0 0 0.773468224481749 0;0 0 0 0.13195985000036 0 0 0 1.51813223209895 0 0 0 0 0 0.0156327604904785 0 1.27556519583119 0.93793259222666 0 0 0 0 0 0 0 0;0 0 0.13195985000036 0 0 0 0.458734989962526 0 0 0 0 0 0 0 0 0 0 0 0.835183344604242 0.11324698880843 0 0 1.27194671889278 0 0.873215204449672;0 0 0 0 0 0 0.0522387394084536 0.441514133149768 0 0 0 0 0 0 0 0 0 0 0 0.104845115642955 0 0 0 0 0;0 1.05960547137835 0 0 0 0 0 0 0 0 0 0.323427832607934 0 0 0 0 0 0.548178891330981 0 0 0 1.78927187214965 0 0 0;0 0 0 0.458734989962526 0.0522387394084536 0 0 0.128458273651367 0 1.10447307401052 0 0 1.60635812839544 0.490059715639469 0 0 0 0 0.87297695015148 0 0 0 0.0385154612576837 0 0;0 0 1.51813223209895 0 0.441514133149768 0 0.128458273651367 0 0 0.0426997868037813 0 0 0 0.316089962309322 0.556234063736422 0 0 0 0 0 0 0 0.125426946797567 0 0.501620852747415;0.205205702932437 0.153644616706166 0 0 0 0 0 0 0 0 0 0 0 0 0 1.22841179064666 0 0.506177174936367 0 0 0 0.139674374757514 0 0 0;0 0 0 0 0 0 1.10447307401052 0.0426997868037813 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.695460494256037;0 0 0 0 0 0 0 0 0 0 0 1.09170738934842 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0.860262579703983 0 0 0 0.323427832607934 0 0 0 0 1.09170738934842 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 1.60635812839544 0 0 0 0 0 0 0 0 0 0 0 0 1.27248881503698 0 0 0 0 0.162219187624835;0.462991342326146 0 0.0156327604904785 0 0 0 0.490059715639469 0.316089962309322 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.111140488918591 0.0639936929497993;0 0 0 0 0 0 0 0.556234063736422 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0.0919395070383298 0 1.27556519583119 0 0 0 0 0 1.22841179064666 0 0 0 0 0 0 0 0.772788879713252 0 0 0 0.00743946114818939 0 0.662296573850469 0 0;0 0 0.93793259222666 0 0 0 0 0 0 0 0 0 0 0 0 0.772788879713252 0 0 0 0 0 0 0 0 0.235465388137087;0 0 0 0 0 0.548178891330981 0 0 0.506177174936367 0 0 0 0 0 0 0 0 0 0.596123003045261 0 0 0.50807778971881 0 0.192149930306311 0;0 0 0 0.835183344604242 0 0 0.87297695015148 0 0 0 0 0 0 0 0 0 0 0.596123003045261 0 1.75354812715354 0 0 0 0.230875543406997 0.402865723829543;0 0 0 0.11324698880843 0.104845115642955 0 0 0 0 0 0 0 1.27248881503698 0 0 0 0 0 1.75354812715354 0 0 0 0.286957051522517 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00743946114818939 0 0 0 0 0 0 0 0 0.12234328650336;0 0 0 0 0 1.78927187214965 0 0 0.139674374757514 0 0 0 0 0 0 0 0 0.50807778971881 0 0 0 0 0 0 0.0229366876888033;0 0 0 1.27194671889278 0 0 0.0385154612576837 0.125426946797567 0 0 0 0 0 0 0 0.662296573850469 0 0 0 0.286957051522517 0 0 0 0 0;0.788285106392582 0.773468224481749 0 0 0 0 0 0 0 0 0 0 0 0.111140488918591 0 0 0 0.192149930306311 0.230875543406997 0 0 0 0 0 0;0 0 0 0.873215204449672 0 0 0 0.501620852747415 0 0.695460494256037 0 0 0.162219187624835 0.0639936929497993 0 0 0.235465388137087 0 0.402865723829543 0 0.12234328650336 0.0229366876888033 0 0 0] ); assert( isequal(route,[21 25 22 9]) && abs( d - 0.284954 ) < 1e-4 );

26   Pass
[route d] = parcel_route( 5, 5, [0 0 0.235687387990488 0 0 0.518662908555243 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00169033754843562 1.18573193396702 0 0 0 0 0;0.235687387990488 0 0 0 0.350144748614205 0 0 0.499051956190166 0 0 0 0 0 0 0 0.428154355783706 0 0 0 0.988646147648288 0 0 0 0 0.766292681932783;0 0 0 0 0 0 0 0 0 0.306976149669423 0 0 0 0 0 0 0.148608071246878 0 0 0 0 0 0 0 0;0 0 0.350144748614205 0 0 0 0.366820040758671 0 0 0 0.947779130029861 0 0 0 0 0 0 0 0 0.781367996905263 0 0 0 0 0;0.518662908555243 0 0 0 0 0 0.28467286265608 0 0 0 0 0 0 0 0 0 0 0 0.814169013559602 0 0 0 0 0 0.514510683872373;0 0 0 0 0.366820040758671 0.28467286265608 0 0 0 0 0 0.137928171247269 0 0 0 0 0 0.581896713318172 0 0 0 1.00288388568789 0.926366539848811 0 0;0 0 0.499051956190166 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.211128675902371 0 0 0 0 0 0 0 0 0;0 0 0 0.306976149669423 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.332300868928405;0 0 0 0 0.947779130029861 0 0 0 0 0 0 0 0 0 0.140274584917356 0 0 0 0.276337784565307 0 0 0 0 0 0;0 0 0 0 0 0 0.137928171247269 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.422423933152413 0 0 0 0 0 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16443124331918 0 0 0 0.113521569230241 0 0 0.431552467605628 0;0 0 0 0 0 0 0 0 0 0 0.140274584917356 0 0 0 0 0 0 1.01590071824433 0 0 0 0 0 0 0;0 0 0.428154355783706 0 0 0 0 0 0.211128675902371 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;0 0 0 0.148608071246878 0 0 0 0 0 0 0 0 0 0.16443124331918 0 0 0 0 0 0.816401527141028 0 0 0 0 1.51727966787778;0 0 0 0 0 0 0.581896713318172 0 0 0 0 0 0 0 1.01590071824433 0 0 0 0 0 0.0315916186043663 0 0 0 0;0 0.00169033754843562 0 0 0 0.814169013559602 0 0 0 0 0.276337784565307 0 0.422423933152413 0 0 0 0 0 0 0 0 0 0 0.113122720118215 0;0 1.18573193396702 0.988646147648288 0 0.781367996905263 0 0 0 0 0 0 0 0 0 0 0 0.816401527141028 0 0 0 0 0 0 0 1.22595526329414;0 0 0 0 0 0 0 0 0 0 0 0 0 0.113521569230241 0 0 0 0.0315916186043663 0 0 0 0 0 0.0278718835255773 0;0 0 0 0 0 0 1.00288388568789 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.627233109842477 0 0;0 0 0 0 0 0 0.926366539848811 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.627233109842477 0 0.210579136296008 0;0 0 0 0 0 0 0 0 0 0 0 0 0 0.431552467605628 0 0 0 0 0.113122720118215 0 0.0278718835255773 0 0.210579136296008 0 0;0 0 0.766292681932783 0 0 0.514510683872373 0 0 0 0.332300868928405 0 0 0 0 0 0 1.51727966787778 0 0 1.22595526329414 0 0 0 0 0] ); assert( isequal(route,5) && abs( d - 0 ) < 1e-4 );

### Community Treasure Hunt

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

Start Hunting!