Binary search from Labyrinth

Cancelled Posted Feb 17, 2011 Paid on delivery
Cancelled Paid on delivery

Implement DFS alogorithm. Need C++ or C or Java

You are given a labyrinth as a graph whose vertices are integers between 0 and 1,000,000.

Each vertex has at most four neighbors, given by four functions; each of these filnctions

maps integers to integers. If applied to an integer representing a vertex, the function

either returns another vertex, or -1, which represents no vertex; but it might generate an error if applied to a number which does not represent a vertex.

Implement the DFS algorithm and provide two functions

- int l-size(int start, int ( * f 1 ) ( i n t ) , int (*t2) ( i n t ) ,

int (*f3) (int), int (*f4) ( i n t ) )

which gives the total number of vertices in the labyririth, and

.

- int l-distance(int start, int target, int ( * f 1 ) ( i n t ) , int ( * f 2 ) ( i n t ) ,

int (*f3) (int) , int (*f4) (int) )

which gives the length of the shortest path from start to target.

The programming language is C or C++; test your code before submission using the gcc or 8++ compiler'

Software Architecture

Project ID: #3112100

About the project

14 proposals Remote project Active Nov 17, 2011

14 freelancers are bidding on average $35 for this job

tomky

See private message.

$39.95 USD in 7 days
(89 Reviews)
5.8
Schura

See private message.

$38.25 USD in 7 days
(57 Reviews)
5.4
LGLSoftware

See private message.

$42.5 USD in 7 days
(84 Reviews)
5.3
jakubwieczorek

See private message.

$30 USD in 7 days
(14 Reviews)
4.6
vw7892265vw

See private message.

$25.5 USD in 7 days
(10 Reviews)
3.9
narcossa

See private message.

$42.5 USD in 7 days
(19 Reviews)
3.2
albertjanuar

See private message.

$25.5 USD in 7 days
(14 Reviews)
3.0
shaswatparikh

See private message.

$25.5 USD in 7 days
(7 Reviews)
2.4
gordonc45

See private message.

$38.25 USD in 7 days
(2 Reviews)
1.5
vitcon0210

See private message.

$25.5 USD in 7 days
(1 Review)
0.0
arin438

See private message.

$34 USD in 7 days
(0 Reviews)
0.0
gaealex

See private message.

$34 USD in 7 days
(0 Reviews)
0.0
opainc

See private message.

$42.5 USD in 7 days
(0 Reviews)
0.0
sivasangaribe

See private message.

$42.5 USD in 7 days
(0 Reviews)
0.0