Find Jobs
Hire Freelancers

Breadth first search

$15-20 USD

Berlangsung
Dibuat sekitar 22 tahun yang lalu

$15-20 USD

Dibayar ketika dikirim
This program involves a Breadth First Sarch o a graph that is to be input from another file. Using the input file first build adjacency list data structure. Next choose any vertex(A)to start the breadth first search and let the result be the vertex(B) at the maximum distance from (A). Next run a breadth first search from (B) and let the result be the vertex(C) at the maximum distanc from (B). Next output the vertices on a pah from (B) to (C) to show the diameter of the tree. ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. The input file for the program for example is 1. The first line of the code is the number of vertices 2. The next x-1 lines gives an edge as an unordered pair of vertices 3. An example input file would be as follows: 5 0 3 1 0 1 4 2 1 All that is needed is the program to put the input file into an adjacency list and run a breadth first search on the graph s stated above. The breadth first search will only be ran twice in the entire program ## Platform The platform for this program will be a digital unix g++ compiler.
ID Proyek: 2845240

Tentang proyek

6 proposal
Proyek remot
Aktif 22 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
See private message.
$17 USD dalam 14 hari
4,9 (6 ulasan)
1,5
1,5
6 freelancer menawar dengan rata-rata $16 USD untuk pekerjaan ini
Avatar Pengguna
See private message.
$17 USD dalam 14 hari
5,0 (2 ulasan)
2,9
2,9
Avatar Pengguna
See private message.
$17 USD dalam 14 hari
4,4 (6 ulasan)
1,6
1,6
Avatar Pengguna
See private message.
$17 USD dalam 14 hari
5,0 (3 ulasan)
1,1
1,1
Avatar Pengguna
See private message.
$12,75 USD dalam 14 hari
0,0 (1 ulasan)
0,8
0,8
Avatar Pengguna
See private message.
$12,75 USD dalam 14 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
United States
5,0
2
Anggota sejak Apr 6, 2002

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.