| Title: | A Random Binary Trees Generation Method |
| Author: | Maghrabi, Saud M.A. [سعود محمد عبد الله مغربي] |
| Abstract: |
There are two widely used random distributions on binary trees, namely the binary search tree distribution and the uniform distribution. By analyzing the performance of algorithms that manipulate binary trees generated at random, it is possible to assess the average case performance of the algorithm. This average case performance is often a more useful reflection of the algorithm's suitability than the worst-case performance. An algorithm may have a worst-case run time that is of exponential time complexity, but an average-case run time that is of polynomial time complexity. In such cases, one wishes to assess the performance of an algorithm on a 'typical' range of tree structures and thus relate properties of randomly generated trees, such as depth, to aspects affecting the algorithm's run-time. The purpose of this paper is to design and implement a random binary trees generation algorithm that considers the average case performance. The algorithm is differ from both the uniform distribution and the binary search tree distribution. Analysis of the behaviour of the algorithm is given. هناك نوعان من التوزيعات العشوائية والتي تستخدم على نطاق واسع ، هما: توزيع شجرة البحث الثنائية، والتوزيع المتماثل . بتحليل أداة الخوارزميات (الطرق ) التي حلت مشكلة إنشاء الأشجار الثنائية بشكل عشوافي ، وجد أنه من المحتمل أن يُقَوَّمَ إنجاز الخوارزمية باستعمال متوسط حالة إنجازها . يعطي متوسط حالة إنجاز الخوارزمية في الغالب انعكاساً مفيداً لمدى ملاءمة الخوارزمية أكثر مما يعظيه أسوأ حالات إنجازها ، أسوأ حالات وقت التنفيذ لأي خوارزمية يمثل مدى التعقيد في هذا الوقت ، ولكن متوسط الحالة لوقت التنفيذ يمثل تعقيداً متعدد الحدود في وقت . من منل هذه الحالاتا، إذا رغب أحدنا في أن يُقوّم أداء خوارزمية على مجموعة مثالية من الأشجار المنتظمة من هحيث الخواص المستعملة بإنشاء الأشجار بشكل صكشوافي ، ومن أمثلة هذه الخواص خاصية العمق ، وكذلك من حيث السمات المؤثرة في وقت تنفيذ الخوارزمية . إن الهدف من هكت ا البحث هو تصميم وقطبيق خوارزمية لإنشاء الأشجار الثنائية بشكل صكشوافي بحيث ليعتمد تَقْوِيم أداء هذه الخوارزمية على متوسط حالة وقت التنفيذ. وتختلف هذه الخواوزمية عن اللوزيعين المذكورين أصكلأه : التوزيع المتماثل ، وتوزيع شجرة البحث الثنافي ، ولقد تمتا دراسة وتحليل خوارزمية هكت ا البحث . |
| URI: | http://hdl.handle.net/10576/9747 |
| Date: | 2000 |
| Files | Size | Format | View |
|---|---|---|---|
| abstract.pdf | 2.012Kb |
View/ |
|
| abstract.doc | 20.5Kb | Microsoft Word |
View/ |
| abstract_ar.doc | 22Kb | Microsoft Word |
View/ |
| 070020-0001-fulltext.pdf | 459.8Kb |
View/ |