Binary search from Labyrinth

Cancelado Publicado Feb 17, 2011 Pagado a la entrega
Cancelado Pagado a la entrega

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'

Arquitectura de software

Nº del proyecto: #3112100

Sobre el proyecto

14 propuestas Proyecto remoto Activo Nov 17, 2011

14 freelancers están ofertando un promedio de $35 por este trabajo

tomky

See private message.

$39.95 USD en 7 días
(89 comentarios)
5.8
Schura

See private message.

$38.25 USD en 7 días
(57 comentarios)
5.4
LGLSoftware

See private message.

$42.5 USD en 7 días
(84 comentarios)
5.3
jakubwieczorek

See private message.

$30 USD en 7 días
(14 comentarios)
4.6
vw7892265vw

See private message.

$25.5 USD en 7 días
(10 comentarios)
3.9
narcossa

See private message.

$42.5 USD en 7 días
(19 comentarios)
3.2
albertjanuar

See private message.

$25.5 USD en 7 días
(14 comentarios)
3.0
shaswatparikh

See private message.

$25.5 USD en 7 días
(7 comentarios)
2.4
gordonc45

See private message.

$38.25 USD en 7 días
(2 comentarios)
1.5
vitcon0210

See private message.

$25.5 USD en 7 días
(1 comentario)
0.0
arin438

See private message.

$34 USD en 7 días
(0 comentarios)
0.0
gaealex

See private message.

$34 USD en 7 días
(0 comentarios)
0.0
opainc

See private message.

$42.5 USD en 7 días
(0 comentarios)
0.0
sivasangaribe

See private message.

$42.5 USD en 7 días
(0 comentarios)
0.0