Find Jobs
Hire Freelancers

Consultation on algorithms and data structures

$10-30 USD

Selesai
Dibuat sekitar 7 tahun yang lalu

$10-30 USD

Dibayar ketika dikirim
Provide answer to these questions: 1) Consider a Sorted Doubly-Linked List, which means that keys are kept always sorted and stored in a doubly linked list: a) Implement an operation SD-LIST-INSERT(L,k) that inserts an integer key k into list L. What is the running time Θ(.) of your implementation? b) Implement an operation SD-LIST-DELETE(L,k) that removes a key k from the list. What is the running time Θ(.) of your implementation? c) Implement operations SD-LIST-SUCCESSOR(L,k) and SD-LIST-PREDECESSOR(L,k) that returns the successor and predecessor of a key k, respectively. What is the running time Θ(.) of your implementation? d) Implement an operation SD-LIST-SEARCH(L,k) that searches for a key k in list L and returns its node position (e.g., 1 if first, 2 if second, etc). What is the running time Θ(.) of your implementation? e) Implement an operation SD-LIST-REVERSE(L) that reverses the order of the keys in place (i.e., Θ(n) space complexity). What is the running time Θ(.) of your implementation? 3) Consider an application that frequently inserts data into a BST and even more frequently performs searches on these data. Because of the high demand for search operations, this application simply can't afford the worst-case searches of a BST (i.e., Θ(n)). To this end, it frequently has to check the height of the BST so it can rebalance it if necessary. It is your chance to show your value to the company and improve their application. Your first job is: d) To implement another operation called TREE-HEIGHT-LOOKUP(x) that retrieves the height h of the node x in constant time; Now, your third and final job is: e) To evaluate and discuss your 2 approaches by answering: "Which of the 2 applications is more efficient? The one with TREE-HEIGHT(x) or the one with TREE-HEIGHT-LOOKUP(x)?" Explain. *Tip: Note that by allowing constant time height look-ups, you added some overhead in computing 2 other operations.
ID Proyek: 13733162

Tentang proyek

3 proposal
Proyek remot
Aktif 7 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
I, Jignesh Lakhani completed my masters from IIT Roorkee in Computer Engineering. I am having very good knowledge of C, C++, Java, JavaFX, Algorithm and Data Structure. I am having strong analytical power. I will complete your project before deadline I am looking forward to discussing with you about this job post. Please feel free to contact me. Respectfully, Jignesh
$40 USD dalam 1 hari
5,0 (2 ulasan)
2,2
2,2
3 freelancer menawar dengan rata-rata $57 USD untuk pekerjaan ini
Avatar Pengguna
Bid Summary Hello Sir/ Ma’am We are a group of Software Engineers having more than 5+ years of experience. Expert in java, C, C++. Please check our profile for reference. Thank you Project Requirements Hello Sir/ Ma’am We are a group of Software Engineers having more than 5+ years of experience. Expert in java, C, C++. Please check our profile for reference. Thank you Relevant Skills and Experience Hello Sir/ Ma’am We are a group of Software Engineers having more than 5+ years of experience. Expert in java, C, C++. Please check our profile for reference. Thank you Proposed Milestones $30 USD - milestone
$30 USD dalam 1 hari
5,0 (14 ulasan)
3,4
3,4

Tentang klien

Bendera UKRAINE
Yuzhnoukrainsk, Ukraine
5,0
3
Memverifikasi Metode pembayaran
Anggota sejak Nov 28, 2009

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.