Find Jobs
Hire Freelancers

algorithms hw5*

$30-5000 USD

ปิดแล้ว
โพสต์ มากกว่า 20 ปีที่ผ่านมา

$30-5000 USD

ชำระเงินเมื่อส่งงาน
**ACME Times** * * * ACME press has two printing houses (denoted by -1 and -2) located at different geographic locations . Every day n/2 trucks depart from each printing house to distribute ACME Times, the most respectable newspaper in the country, to n neighbouring cities (n=2*k, 1<k<=30). Cities are denoted by numbers between 1 and n. All n cities must receive ACME Times and a truck can not distribute its load to more than one city. Due to economic crisis, ACME press management wants to lower distribution costs by decreasing total distance traveled by trucks. You are given the length of roads connecting cities and printing houses, and your task is to help them by writing a program that finds which truck must distribute to which city in order to minimize total distance traveled by trucks. **Input** The first line of the input file *[login to view URL]* contains two integers n and m denoting the number of cities and number of roads respectively. Each of the following m lines contains three numbers ui, vi and di (0 < di <= 1000) which states that city (or printing house) ui is connected to city (or printing house) vi by a road of length di. All roads are bidirectional. You can assume that the input is error-free. | _newspaper.inp_ 4 7 -1 3 7 -1 4 3 -2 1 6 -2 3 13 1 3 5 3 4 3 2 3 7 | | ![][1] | **Output** Output of your program is a file named *[login to view URL]*. The first line of [login to view URL] must contain a single integer number, giving the minimum possible total distance traveled by trucks. The second and third lines must contain n/2 integer numbers seperated by a blank, giving the numbers of cities visited by trucks starting from printing house -1 and -2 respectively. _newspaper.out_ 33 3 4 1 2 **Submission** You will submit your source file *newspaper.c* (or *[login to view URL]*). ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site). ## Platform linux time limit:max 5 seconds with pII-450
รหัสโปรเจกต์: 3047215

เกี่ยวกับโปรเจกต์

14 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 20 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
14 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $21 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
See private message.
$5.95 USD ใน 2 วัน
5.0 (50 รีวิว)
6.0
6.0
รูปอวาตาร์ของผู้ใช้
See private message.
$10.20 USD ใน 2 วัน
5.0 (141 รีวิว)
6.1
6.1
รูปอวาตาร์ของผู้ใช้
See private message.
$11.05 USD ใน 2 วัน
4.9 (59 รีวิว)
5.1
5.1
รูปอวาตาร์ของผู้ใช้
See private message.
$84.15 USD ใน 2 วัน
5.0 (4 รีวิว)
3.2
3.2
รูปอวาตาร์ของผู้ใช้
See private message.
$29.75 USD ใน 2 วัน
4.9 (6 รีวิว)
2.8
2.8
รูปอวาตาร์ของผู้ใช้
See private message.
$21.25 USD ใน 2 วัน
5.0 (14 รีวิว)
2.2
2.2
รูปอวาตาร์ของผู้ใช้
See private message.
$11.05 USD ใน 2 วัน
4.7 (7 รีวิว)
2.2
2.2
รูปอวาตาร์ของผู้ใช้
See private message.
$17 USD ใน 2 วัน
4.8 (7 รีวิว)
1.9
1.9
รูปอวาตาร์ของผู้ใช้
See private message.
$12.75 USD ใน 2 วัน
3.5 (1 รีวิว)
0.5
0.5
รูปอวาตาร์ของผู้ใช้
See private message.
$8.50 USD ใน 2 วัน
4.8 (5 รีวิว)
0.4
0.4
รูปอวาตาร์ของผู้ใช้
See private message.
$7.65 USD ใน 2 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$34 USD ใน 2 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$21.25 USD ใน 2 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$12.75 USD ใน 2 วัน
0.0 (1 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ TURKEY
Turkey
0.0
0
เป็นสมาชิกตั้งแต่ ก.ค. 9, 2003

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง