المرجع الالكتروني للمعلوماتية
المرجع الألكتروني للمعلوماتية

الرياضيات
عدد المواضيع في هذا القسم 9764 موضوعاً
تاريخ الرياضيات
الرياضيات المتقطعة
الجبر
الهندسة
المعادلات التفاضلية و التكاملية
التحليل
علماء الرياضيات

Untitled Document
أبحث عن شيء أخر
اليمين واقسامه واحكامه
2024-10-06
النذر والعهد واليمين
2024-10-06
الخمس وموارده
2024-10-06
الانفال
2024-10-06
كفارة حلق الرأس
2024-10-06
كفارة جزاء الصيد
2024-10-06

الأفعال التي تنصب مفعولين
23-12-2014
صيغ المبالغة
18-02-2015
اولاد الامام الحسين (عليه السلام)
3-04-2015
الجملة الإنشائية وأقسامها
26-03-2015
معاني صيغ الزيادة
17-02-2015
انواع التمور في العراق
27-5-2016

Minimum-Cost Spanning Trees  
  
1683   01:31 صباحاً   date: 12-2-2016
Author : W.D. Wallis
Book or Source : Mathematics in the Real World
Page and Part : 116-118


Read More
Date: 13-3-2022 1978
Date: 17-5-2022 1011
Date: 28-3-2022 1714

The following example illustrates an application of spanning trees.

Sample Problem 1.1 Suppose an oil field contains five oil wells w1, w2, w3, w4, w5, and a depot d. It is required to build pipelines so that oil can be pumped from the wells to the depot. Oil can be relayed from one well to another, at very small cost. All the workers involved will be company employees, so the only real expense is building the pipelines. Figure 1.1a shows which pipelines are feasible to build, represented as a graph in the obvious way, with the cost (in hundreds of thousands of dollars) shown. (If there is no edge between two vertices, the cost of a direct join between them would be very high.) Which pipelines should be built?

Solution. Your first impulse might be to connect d to each well directly, as shown in Fig. 8.1b. This would cost $2,600,000. However, the cheapest solution is shown in Fig. 1.1c, and costs $1,600,000.

                Fig. 1.1 An oil pipeline problem

Once the pipelines in case (c) have been built, there is no reason to build a direct connection from d to w3. Any oil being sent from w3 to the depot can be relayed through w1. Similarly, there would be no point in building a pipeline joining w3 to w4. The conditions of the problem imply that the graph does not need to contain any cycle. However, it must be connected. So the solution is to find a spanning tree.

Moreover, the company would prefer the cheapest possible spanning tree. So we are interested in a minimum-cost spanning tree.

We shall look at an algorithm first described by Joseph Kruskal in 1956; not surprisingly, it is called Kruskal’s algorithm. Here is how it works.

First of all, select the cheapest edge in the graph. Then select the next cheapest edge. At every subsequent stage, go through the edges and delete any edge that would complete a cycle when combined with some of the edges already chosen.

Continue in this fashion. If, at any stage, there are two cheapest edges available,  choose either one. The end result will be a spanning tree, and it can be shown that this method always gives a cheapest possible tree.

Fig. 1.2 Finding a minimum-cost spanning tree

As an example, consider the graph on the left of Fig. 1.2. The cheapest edge is e f , cost 1. The next cheapest cost is 2, and we can choose any one of f g, b f or bg.  Say we select f g. For the third edge we can choose either b f or bg; whichever one is chosen, the other will no longer be available, because we need to avoid the cycle bfg. We shall select f g. There are two edges of cost 3, namely cg and dg. We shall use cg. Then dg is still available, so we choose it for the fifth edge. At cost 4, there are four choices: dg, gh, ab, and ae. Say we select dh; then gh must be eliminated.

Finally, we choose ae, and ab is no longer available. The tree is complete, and is shown in the right-hand diagram.

Sample Problem 1.2 Suppose you are in the process of using Kruskal’s algorithm to find a minimum-cost spanning tree in the graph shown. Heavy line edges are those selected so far. Which edge would you choose next?

Solution. The available edges are ab, cd, and f g. But ab is disqualified because it would complete the cycle abe. Of the two remaining, cd is cheaper, so it is chosen.

                  Fig. 1.3 An example of Kruskal’s algorithm

Sample Problem 1.3 Find a minimal spanning tree in the graph G shown in Fig. 1.3a.

Solution. We start by listing the edges in order of cost: de, cost 1; be, cost 2; c f ,  cost 3; ab, cost 4; ad, cost 5; bc and e f , each cost 6. The first edge chosen is de.

Next is be, then c f , then ab, cost 4. The next cheapest is ad, but it is not allowed because it would form the cycle abed. So we go on to either bc or e f , either may be chosen, and there are two possible solutions, both of total cost 16. They are shown in Fig. 8.3, graphs (b) and (c).

 

 

 

 




الجبر أحد الفروع الرئيسية في الرياضيات، حيث إن التمكن من الرياضيات يعتمد على الفهم السليم للجبر. ويستخدم المهندسون والعلماء الجبر يومياً، وتعول المشاريع التجارية والصناعية على الجبر لحل الكثير من المعضلات التي تتعرض لها. ونظراً لأهمية الجبر في الحياة العصرية فإنه يدرّس في المدارس والجامعات في جميع أنحاء العالم. ويُعجب الكثير من الدارسين للجبر بقدرته وفائدته الكبيرتين، إذ باستخدام الجبر يمكن للمرء أن يحل كثيرًا من المسائل التي يتعذر حلها باستخدام الحساب فقط.وجاء اسمه من كتاب عالم الرياضيات والفلك والرحالة محمد بن موسى الخورازمي.


يعتبر علم المثلثات Trigonometry علماً عربياً ، فرياضيو العرب فضلوا علم المثلثات عن علم الفلك كأنهما علمين متداخلين ، ونظموه تنظيماً فيه لكثير من الدقة ، وقد كان اليونان يستعملون وتر CORDE ضعف القوسي قياس الزوايا ، فاستعاض رياضيو العرب عن الوتر بالجيب SINUS فأنت هذه الاستعاضة إلى تسهيل كثير من الاعمال الرياضية.

تعتبر المعادلات التفاضلية خير وسيلة لوصف معظم المـسائل الهندسـية والرياضـية والعلمية على حد سواء، إذ يتضح ذلك جليا في وصف عمليات انتقال الحرارة، جريان الموائـع، الحركة الموجية، الدوائر الإلكترونية فضلاً عن استخدامها في مسائل الهياكل الإنشائية والوصف الرياضي للتفاعلات الكيميائية.
ففي في الرياضيات, يطلق اسم المعادلات التفاضلية على المعادلات التي تحوي مشتقات و تفاضلات لبعض الدوال الرياضية و تظهر فيها بشكل متغيرات المعادلة . و يكون الهدف من حل هذه المعادلات هو إيجاد هذه الدوال الرياضية التي تحقق مشتقات هذه المعادلات.