Find Jobs
Hire Freelancers

C++ graphs & binary search trees

$10-30 USD

Em Andamento
Publicado há aproximadamente 3 anos

$10-30 USD

Pago na entrega
Jack bought a new car, and he wants to travel to visit his friends, but he has too many. At each intersection he has a friend, so he must find the shortest possible way not to spend too much time on the road. Each street is a one-way street. The intersections are uniquely numbered from 1 to n, with n < 50. The streets also contain numbers, which represent the distances between 2 intersections. As Jack spent all his money for the new car, he has no money left to buy a GPS. Help Jack find the shortest path to his friends. If there is no path available, display an appropriate message. Hint: Consider a graph in which the vertices are intersections, and the arcs are the streets determined by the intersections. Tasks: (1p) a) Modify the "Graph" class to represent an oriented graph. (4p) b) Read from the keyboard the "streets" and the distances between 2 intersections. Save them in a graph. Subject 2 – BST [5p] (0.5p) a) Read letters from the keyboard and insert them in a BST. The reading process stops when the user inserts the character 0 (zero). (0.75p) b) Find the common ancestor of 2 given nodes. (0.75p) c) Write a function to check is a node is a grandparent of a given node. (1p) d) Design an algorithm which creates a linked list of all the nodes at each depth (i.e., if the tree has depth D, you’ll have D linked lists). (1p) e) Check if a BST is perfect or not (all leaves are at the same distance from the root). (1p) f) Perform a right rotation of the BST.
ID do Projeto: 30157516

Sobre o projeto

2 propostas
Projeto remoto
Ativo há 3 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
2 freelancers estão ofertando em média $10 USD for esse trabalho
Avatar do Usuário
Hello! I have good experiences like your project. I have read your all description carefully and I understand your requirement. So I think I can deliver you good result. Thanks. Best regards.
$10 USD em 1 dia
5,0 (8 avaliações)
2,3
2,3
Avatar do Usuário
Hi Dear, I read your description carefully. I understood very well what you want. My experience of developing projects with C/C++ and etc is over 5+ years. I ensure the best quality of the result and I will do this in time as you want. If we will work together, it will be a great pleasure for you and me. I hope your kind reply. Best Regards. Gauss T.
$10 USD em 1 dia
5,0 (4 avaliações)
1,9
1,9

Sobre o cliente

Bandeira do(a) ROMANIA
Bucharest, Romania
5,0
2
Método de pagamento verificado
Membro desde abr. 23, 2021

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos 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)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.