Find Jobs
Hire Freelancers

Java Depth First Search

$30-250 USD

Завершено
Опублікований over 8 years ago

$30-250 USD

Оплачується при отриманні
DepthFirstSearch (DFS) : parent node; discovery/finishing time; parenthesis theorem. 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 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
ID проекту: 8177084

Про проект

12 пропозицій(-ї)
Дистанційний проект
Активність 9 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
Hi christine, I would like to do this project please. Let me know if you are interested so I can start. Thanks.
$35 USD за 3 дні(-в)
4,9 (1032 відгуки(-ів))
7,5
7,5
12 фрілансерів(-и) готові виконати цю роботу у середньому за $67 USD
Аватарка користувача
Hi there! I'm a Professional java Developer and Data analyst for a well known Software House in Islamabad, Pakistan named "PacSquare". I'm doing freelancing to get most out of my free time. Please consider my bid. I assure you that you'll get my best services and Satisfaction in return. Thanks a million! Maher Shahmeer
$45 USD за 2 дні(-в)
5,0 (111 відгуки(-ів))
5,9
5,9
Аватарка користувача
I have 5 years of programming experience. I can help you solve this problem. When you work with me you will feel very comfortable.
$50 USD за 3 дні(-в)
4,8 (50 відгуки(-ів))
4,8
4,8
Аватарка користувача
Hello I am .Net Software Developer working on Web & Desktop applications (C# expert developer) Languages , i can on : C#.Net, VB.Net, Android, Java, C, C++, PHP, Java script, JQuery, Ajax, HTML etc... Database : SQL SERVER / Oracle / MS-Access / Text My good points: - Full support. - Master Degree in Computer Science - 3+ Years of experience - Delivered before time - My good habit is to leaving comment on important lines. ----------------------------------------------------------------------- if you have any confusion, Feel free to ask Lets discus your project
$155 USD за 3 дні(-в)
5,0 (17 відгуки(-ів))
4,3
4,3
Аватарка користувача
I can handle this task easily.
$35 USD за 2 дні(-в)
5,0 (3 відгуки(-ів))
2,5
2,5
Аватарка користувача
I have a good knowledge of algorithms and graphs theory. Will do great job. Contact me if you have questions.
$77 USD за 1 день
5,0 (1 відгук)
1,8
1,8
Аватарка користувача
I am student of second year of Theoretical Computer Science. I use DFS very often to solve many graphs problems so I know that algorithm. The Parentheses Theorem is easy to prove as DFS finds spanning tree in the graph and then it is trivial to show that works.
$30 USD за 1 день
5,0 (1 відгук)
1,2
1,2
Аватарка користувача
Hello, I'm interested in doing this project. I'm a computer science student at senior standing and have done projects like this in the past. I've had to do a similar project in JAVA so I know what needs to be done. Seeing that it is an assignment I understand the importance of following good style and would be sure to do it the way your instructor expects. I'm a good communicator and would make sure to ask before assuming anything and would keep you updated on my progress. If you have any questions or concerns please let me know, Thank you.
$115 USD за 4 дні(-в)
5,0 (1 відгук)
0,7
0,7
Аватарка користувача
I am good at data structures and algorithms. I implemented the algorithm from cormen book. My topcoder rating for SRM is 1312. I can do it by Saturday. Will not ask for any advance milestone payments .
$55 USD за 2 дні(-в)
0,0 (1 відгук)
0,0
0,0
Аватарка користувача
A proposal has not yet been provided
$111 USD за 5 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
A proposal has not yet been provided
$50 USD за 7 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор KOREA, REPUBLIC OF
Seoul, Korea, Republic of
5,0
22
Спосіб оплати верифіковано
На сайті з бер. 3, 2014

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.