Find Jobs
Hire Freelancers

digraph

$30-5000 USD

Terminado
Publicado hace más de 22 años

$30-5000 USD

Pagado a la entrega
Define a class for finite digraphs. The class should be called Digraph. It should represent a directed graph with n vertices, and various edges between them. One possible representation is an nxn matrix A where A(i,j) is 1 if there is an edge from i to j, and zero otherwise. For strategic reasons, the domain of A(i,j) could be a byte rather than a boolean. Array values should be non-negative. The vertices can be 'labeled' 0,1,2,...,n-1. Initialization can be via a set of ordered pairs where each pair represents an edge. These pairs can reside in a file, and the first element of the file might be n. Constructors: Digraph(filename fn, size n) Digraph(size n) Mutator method to set a digraph: void setGraph(filename fn) application methods: 1. inDegree(vertex_index v) 2. outDegree(vertex_index v) 3. boolean edgeFrom(v1,v2) returns true if there is an edge from v1 to v2 4. paths(length n) returns a Digraph B such that B(v1,v2) is > 0 iff there is a path from v1 to v2 of length precisely n. 5. pathFrom(v1, v2) returns true if there is SOME path from v1 to v2; alternatively a shortest path could be returned, or the length of a shortest path could be returned 6. a reasonable public void toString() 7. a reasonable public boolean equals(Digraph d) ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. ## Deadline information deadline is tuesday or wednesday
ID del proyecto: 2829256

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 23 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
See private message.
$42,50 USD en 14 días
5,0 (7 comentarios)
3,4
3,4
4 freelancers están ofertando un promedio de $45 USD por este trabajo
Avatar del usuario
See private message.
$34 USD en 14 días
5,0 (38 comentarios)
4,1
4,1
Avatar del usuario
See private message.
$42,50 USD en 14 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$59,50 USD en 14 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
United States
5,0
5
Miembro desde ene 1, 2003

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.