Find Jobs
Hire Freelancers

write an algorithm of program

₹100-400 INR / hour

Ditutup
Dibuat lebih dari 8 tahun yang lalu

₹100-400 INR / hour

Suppose you are employed by a marine shipping company that routinely ships goods between San Francisco and Hong Kong. This is a very large company that needs to send multiple shipping vessels each week between these two locations. Each vessel has a fixed limit W on the maximum amount of weight that it is legally permitted to carry. Shipping containers arrive at the San Francisco dock one by one, and each of the i = 1, . . . , n containers is weighed (denoted as wi). Unfortunately, only one vessel can be docked and loaded at any point in time. In order to avoid customer complaints, the company policy is that containers are shipped in the order that they arrive at the dock. Currently, the company is using a simple strategy for loading the vessel: load containers in the order they arrive at the dock, and if a container doesn’t fit on the vessel, the vessel leaves the dock and the next vessel is loaded. Your company is curious whether they are using too many vessels and have thus hired you to provide an analysis on whether there is any room for improvement. Their thinking is that it may be possible to decrease the number of vessels needed by sometimes sending a vessel off to Hong Kong if it was less than full, which will allow the next vessels to be better packed. Prove that, for any set of containers with any weights, the current company strategy does minimize the number of needed vessels. Do not prove the complexity of the algorithm. HINTS: (1) use the “greedy stays ahead” approach shown in lecture, (2) proof by induction
ID Proyek: 8617572

Tentang proyek

2 proposal
Proyek remot
Aktif 8 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
2 freelancer menawar dengan rata-rata ₹182 INR/jam untuk pekerjaan ini
Avatar Pengguna
Hello Sir... I am a computer science teacher, I teach (among others) C++ and Algorithms. I have done many projects like this. Please contact me for more details when possible. I look forward to work for you Sir. Best Regards.
₹100 INR dalam 20 hari
5,0 (32 ulasan)
4,9
4,9
Avatar Pengguna
I am an IITK graduate, 9 year experienced software professional and I have got top notch developers in my team, who have got experience across a span of technologies. The members in my team have worked with top notch tech organization such as Amazon, Cisco, Oracle etc. We have been involved in similar projects in the past and our track record has been excellent.
₹263 INR dalam 1 hari
5,0 (5 ulasan)
3,8
3,8
Avatar Pengguna
thank you for your posting. your task is NP problem and very happy for me. bz i have much experiences in NP problem field. i solved container loading program by using 3 space distribution method. if you want to need my previous work,i will send it. if you hire me,i will complete project ASAP with higher quality. best regards.
₹100 INR dalam 1 hari
4,6 (1 ulasan)
1,7
1,7

Tentang klien

Bendera INDIA
Calcutta, India
4,6
121
Memverifikasi Metode pembayaran
Anggota sejak Jan 29, 2011

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.