Find Jobs
Hire Freelancers

DepthFirstSearch (DFS) : parent node; discovery/finishing time; parenthesis theorem. - open to bidding

$30-250 USD

Cerrado
Publicado hace casi 9 años

$30-250 USD

Pagado a la entrega
Requirements: implement/update specific methods for the DFS of a graph; for at least 2 graphs (1 being the provided one), show the DFS order of vertices in the graph, and for each node, specify its parent node in the search (the node from which the currect node was reached). Moreover, display for each node the discovery and finishing time, to check that the Parenthesis Theorem holds true. Approach:You may start from the DFT in the textbook and do the appropriate changes. For counting the dfs time, you should set a global counter (let’s name it time), which is set to 0 in the moment the search starts with the root vertex. At any moment the search starts with a new vertex (that is, justafter entering a new dfs) the counter has to be incremented by one; also it has to be incremented by one when the search from the current node ends (just before exit a dfs). For each node, calculate also the discovery and finishing time; for doing this, you may use two arrays (let’s name them d[] for discovery and f[] for finishing). The discovery time of a given vertex v receives the value of the counter just when enter to the dfs for that vertex (that is d[v]=time, before incrementing time), and the finishing just before exit from that dfs (that is f[v]=time, before decrementing incrementing time). Parentheses Theorem: In any depth first search, for any 2 vertices u and v, one of the following 3 conditions holds true: The intervals [d[u], f[u]] and [d[v], f[v]] are completely disjoint; The [d[u], f[u]] interval is completely contained within interval [d[v], f[v]], and u is a descendant of v in the dfs tree; The [d[v], f[v]] interval is completely contained within interval [d[u], f[u]], and v is a descendant of u in the dfs tree; Design and implement a driver to show the following (check for 2 graphs; 1 is provided, including the starting vertex): Display the dfs starting from a specified vertex; Display the discovery/finishing time for each node in the graph; Display the parent node for each node in the dfs; Show the Parentheses Theorem holds true, by mentioning the specific condition in each case (this has to me manually calculated and added in the documentation). Input data: You should test your application and include the tests in your documentation for at least two graphs; one is mandatory to be this one provided below. It is represented in the G = (V, E) representation, where V is the vertices set, and E is the edges set. Please note that our graph is a directed one (that is edges have directions, thus, the presence of an (u, v) edge does not imply (v, u) is also present in the graph). Nevertheless, this has no impact on the algorithm and its implementation. The dfs should start with vertex 1. V= {1, 2, 3, 4, 5, 6, 7} E= {1, 2}, {1, 6}, {2, 3}, {2, 4}, {2, 5}, {3, 5}, {4, 5}, {5, 1},{6, 4}, {6, 7} Deliverables: You should submit (1) all the source (.java) files, (2) a screenshot sample file (the output displayed while running your application to show the required functionalities) and (3) a documentation file. It should contain the design decisions, test plan, the output for the two runs, and the condition met by the Parentheses Theorem in each case. The documentation should be no more than five pages in length and no less than two pages. The font size should be 12 point, the page margins one inch, and the paragraphs formatted with single spaced. Any figures, tables, equations, and references should be properly labeled and formatted using APA style. Wrapp all the files in a single .zip archive and name it [login to view URL] (if I were you, it would be [login to view URL]).
ID del proyecto: 8240103

Información sobre el proyecto

14 propuestas
Proyecto remoto
Activo hace 9 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
14 freelancers están ofertando un promedio de $167 USD por este trabajo
Avatar del usuario
Hi, I have read the requirements and I would like to do this project if given the opportunity. I did lots of graph algorithms before so I am confident on completing this project as required. Let me know if you are interested so I can start. Thanks.
$35 USD en 1 día
4,9 (1465 comentarios)
7,8
7,8
Avatar del usuario
I am an expert in delivering custom scripts and software willing to discuss further about the project needs
$189 USD en 5 días
4,8 (179 comentarios)
7,6
7,6
Avatar del usuario
I want to discuss this project with you further, let me know the best suitable time for you to schedule the meeting, Feel free to message me at any time, i used to be online 14 hrs in a day on this website so probably you will get a quick response from my end.
$309 USD en 10 días
4,8 (57 comentarios)
7,1
7,1
Avatar del usuario
I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the language is c++ under linux. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ scripts which has the same effect, of course garbage collection included. I also made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.
$80 USD en 1 día
4,8 (115 comentarios)
6,9
6,9
Avatar del usuario
Hello Let's explore the requirement and kindly let us know if you would like us to share our skills & experiences with previous development. thanks & Regards Moumita
$226 USD en 8 días
4,7 (159 comentarios)
7,1
7,1
Avatar del usuario
Hi, I have strong background in JAVA and experience in Programming. Let me help you. I am ready to start.
$155 USD en 3 días
4,8 (97 comentarios)
6,1
6,1
Avatar del usuario
A proposal has not yet been provided
$120 USD en 3 días
4,8 (29 comentarios)
4,0
4,0
Avatar del usuario
A proposal has not yet been provided
$144 USD en 3 días
5,0 (15 comentarios)
3,5
3,5
Avatar del usuario
I have much experience in using multiple programming languages, and I have developed mobile app for one years, so I believe I can solve your task quickly.
$66 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
A proposal has not yet been provided
$155 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
ACM ICPC representative from my college, will complete the work very easily and neatly. Just need one day to complete this task.
$155 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Your proposal is your first (and perhaps only) chance to make a good first impression to the employer! Ensure that you: Understand their project needs. Explain how your skills and experience make you the right freelancer for the job. Outline how you plan to complete their project and techniques you will use. Invite them to contact you to discuss further details.
$250 USD en 7 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Whitehouse Station, United States
5,0
37
Forma de pago verificada
Miembro desde jun 23, 2014

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.