In the bin packing problem, objects of different volumes must be packed into a finite number of bins or containers each of volume V in a way that minimizes the number of bins used. In computational complexity theory, it is a combinatorial NP-hard problem.
There are many variations of this problem, such as 2D packing, linear packing, packing by weight, packing by cost, and so on. They have many applications, such as filling up containers, loading trucks with weight capacity constraints, creating file backups in removable media and technology mapping in Field-programmable gate array semiconductor chip design.
The bin packing problem can also be seen as a special case of the cutting stock problem. When the number of bins is restricted to 1 and each item is characterised by both a volume and a value, the problem of maximising the value of items that can fit in the bin is known as the knapsack problem.
Despite the fact that the bin packing problem has an NP-hard computational complexity, optimal solutions to very large instances of the problem can be produced with sophisticated algorithms. In addition, many heuristics have been developed: for example, the first fit algorithm provides a fast but often non-optimal solution, involving placing each item into the first bin in which it will fit. It requires Θ(n log n) time, where n is the number of elements to be packed. The algorithm can be made much more effective by first sorting the list of elements into decreasing order (sometimes known as the first-fit decreasing algorithm), although this still does not guarantee an optimal solution, and for longer lists may increase the running time of the algorithm. It is known, however, that there always exists at least one ordering of items that allows first-fit to produce an optimal solution.[1]
An interesting variant of bin packing that occurs in practice is when items can share space when packed into a bin. Specifically, a set of items could occupy less space when packed together than the sum of their individual sizes. This variant is known as VM packing[2] since when virtual machines (VMs) are packed in a server, their total memory requirement could decrease due to pages shared by the VMs that need only be stored once. If items can share space in arbitrary ways, the bin packing problem is hard to even approximate. However, if the space sharing fits into a hierarchy, as is the case with memory sharing in virtual machines, the bin packing problem can be efficiently approximated.
ในการแก้ปัญหาการบรรจุถังได้วัตถุต่างๆของโวลุ่มต่างๆจะต้องจัดเก็บลงในหมายเลขแบบจำกัดของถังขยะหรือ ภาชนะ บรรจุแต่ละครั้งของระดับเสียง V ในทางที่ช่วยลดจำนวนการใช้ถังขยะ นวัตกรรมความซับซ้อนในทฤษฎี,เป็น combinatorial NP - ฮาร์ดดิสก์มีปัญหา.
มีความแตกต่างของจำนวนมากของปัญหานี้เช่นการเป็น 2 D ถูกบีบอัด,ตามแนวยาวบรรจุ ภัณฑ์ ,การบรรจุหีบห่อด้วยน้ำหนักตัวที่ถูกบีบอัดโดยต้นทุนและที่จะเป็นไปได้แอพพลิเคชันที่มีจำนวนมากเช่นการเติมน้ำขึ้นคอนเทนเนอร์,การโหลดรถบรรทุกพร้อมด้วยน้ำหนักความจุเงื่อนไข,การสร้างไฟล์สำรองข้อมูลในสื่อบันทึกที่ถอดออกได้และเทคโนโลยีการทำแผนที่ในฟิลด์แบบตั้งโปรแกรมได้ประตูความหลากหลายการออกแบบชิปเซมิคอนดักเตอร์.
ที่ถังบรรจุปัญหายังสามารถเป็นได้ทั้งที่พิเศษกรณีของหุ้นที่มีปัญหา.เมื่อจำนวนของถังขยะมีการจำกัดการใช้ถึง 1 และแต่ละรายการมีลักษณะโดดเด่นด้วยทั้งที่ระดับเสียงและให้ความคุ้มค่าสูงสุดที่มีปัญหามากที่สุดของมูลค่าของรายการที่สามารถสวมใส่ได้พอดีในถังขยะเป็นที่รู้จักกันในชื่อที่เครื่องหลังปัญหา.
แม้ว่าจะมีข้อเท็จจริงที่ว่าที่ถังขยะที่มีการบรรจุปัญหา NP - ฮาร์ดดิสก์นวัตกรรมความซับซ้อน,โซลูชันได้ผลดีที่สุดให้เป็นอย่างมากขนาดใหญ่บางกรณีของปัญหาสามารถผลิตได้ด้วยอัลกอริธึมที่ซับซ้อน.นอกจากนี้ Heuristics จำนวนมากได้รับการพัฒนาตัวอย่างเช่นอัลกอริธึมพอดีกับครั้งแรกที่จะให้โซลูชันได้อย่างรวดเร็วแต่มักไม่ได้ผลดีที่สุดซึ่งเกี่ยวข้องกับการวางรายการแต่ละรายการในถังขยะเป็นครั้งแรกที่จะได้ คุณจำเป็นต้องθ( N ล็อกอินเข้าสู่ n )เวลาที่ n คือจำนวนขององค์ประกอบสามารถจัดเก็บอัลกอริธึมที่สามารถทำได้มี ประสิทธิภาพ มากขึ้นเป็นครั้งแรกโดยการเรียงลำดับรายการขององค์ประกอบในการสั่งซื้อลดลง(บางครั้งเรียกว่าอัลกอริธึมครั้งแรก - Fit ลดลง)แม้ว่าที่แห่งนี้ยังไม่รับประกันโซลูชันที่ดีที่สุดสำหรับรายการได้อีกต่อไปและอาจจะเพิ่มเวลาการทำงานของอัลกอริธึมที่ แต่ถึงอย่างไรก็ตามยังเป็นที่รู้จักกันดีที่มีอยู่เสมอมีอยู่แล้วที่อย่างน้อยหนึ่งการสั่งซื้อของรายการที่ทำให้เป็นครั้งแรกมีความกระชับในการผลิตที่มี ประสิทธิภาพ โซลูชัน.[ 1 ]
ที่น่าสนใจไม่เหมือนกันของถังบรรจุ ภัณฑ์ ที่เกิดขึ้นในการฝึกซ้อมคือเมื่อรายการสามารถใช้พื้นที่ว่างเมื่อจัดเก็บลงในที่ถัง. โดยเฉพาะชุดของรายการไม่สามารถใช้พื้นที่น้อยลงเมื่อมารวมกันมากกว่าจำนวนเงินที่มีขนาดของตนไม่เหมือนกันเป็นที่รู้จักกันดีว่า VM สามารถบีบอัด[ 2 ]นับตั้งแต่เมื่อเครื่องเสมือน( VM )มีบรรจุในเซิร์ฟเวอร์ที่ความต้องการหน่วยความจำทั้งหมดของตนจะลดลงเนื่องจากหน้าใช้ร่วมกันโดย VMS ที่จำเป็นต้องได้รับการจัดเก็บเพียงครั้งเดียว หากรายการสามารถใช้ข้อมูลร่วมกันพื้นที่ในหลายวิธีตาม อำเภอ ใจปัญหาการบรรจุถังเป็นการยากที่จะถึงโดยประมาณ แต่ถึงอย่างไรก็ตามหากการใช้งานร่วมกันที่ใช้ได้พอดีกับพื้นที่ว่างเข้าไปในลำดับชั้นในกรณีที่มีการใช้ร่วมกันหน่วยความจำในเครื่องเสมือนจริงปัญหาการบรรจุถังขยะที่สามารถโดยได้อย่างมี ประสิทธิภาพ .
การแปล กรุณารอสักครู่..
