- 45
- 0
- 约3.55万字
- 约 45页
- 2018-10-02 发布于广西
- 举报
PAGE
lw
lw
XXXX大学
毕 业 设 计(论 文)
题 目
基于OpenMP的快速排序算法分析与程序设计
专 业
学生姓名
班级学号
指导教师
评阅教师
指导单位
日期: 年 月 日至 年 月 日
摘 要
?OpenMP是一种面向共享内存以及分布式共享内存的多处理器多线程并行编程语言。具有良好的可移植性,支持Fortran和C/C++编程语言,操作系统平台方面则支持UNIX系统以及Windows?系统。OpenMP的重要性在于它能够为编写多线程程序提供一种简单的方法,而无需程序员进行复杂的线程创建、同步、负载平衡和销毁工作。而快速排序(Quicksort)是对冒泡排序的一种改进,它采用了分治的思想,是所有排序算法中最高效,应用最广泛的一种。本文将对OpenMP的快速排序算法进行分析并设计程序。
论文根据执行模式和三个基本要素分析了OpenMP技术的基本原理,并详细讲解了它的优缺点,阐述其发展趋势。接着列举了主要的几个排序算法进行比较说明,以便能更好地了解其性能特点。对快速排序算法分别从最好情况,最坏情况,平均情况进行总体分析。最后对快速排序,基于归并的快速排序,双倍快速排序举例进行程序编码,通过实践编程来加深对本课题知识的掌握。
关键字:OpenMP,并行程序,多线程共享,库函数,编译系统,快速排序。
ABSTRACT
OpenMP for shared memory and distributed shared memory multi-processor, multi-threaded parallel programming language. Has good portability, Support for FORTRAN and C / C + + programming language,Operating system platform support UNIX systems and Windows systems. The OpenMP importance lies in its ability to provide a simple method for the preparation of a multithreaded program, Without the need for programmers to create complex threads, synchronization, load balancing, and destruction. Quick Sort (Quicksort) is an improvement on the bubble sort, it uses the idea of ??partition, is the most efficient, the most widely used one among all the sorting algorithm. In this paper, OpenMP quick sort algorithm analysis and design process.
According to the execution mode and three basic elements, the paper analyzes the basic principles of OpenMP technology, and explain in detail the advantages and disadvantages of its development trend. Goes on to list the main sorting algorithm compare instructions, in order to better understand its performance characteristics. From the best-case, worst-case, average case, the overall analysis of the quick sort algorithm. Finally, the quick sort, quick sort merge double quick sort example program code, programming practice to deepen the mastery of knowledge on the subject.
Keywords: OpenMP,Parallel program, Multi-threaded shared, Library functions, C
您可能关注的文档
- 毕业论文设计《关于对应收账款审计的分析》.doc
- 毕业论文设计《关于府店三中语文教学中文言文教学现状的调查》.doc
- 毕业论文设计《关于各种n阶矩阵的幂运算的方法》.doc
- 毕业论文设计《关于关系营销与建立顾客忠诚》.doc
- 毕业论文设计《关于广西桂果食品有限公司生产状况的调查报告论文》.doc
- 毕业论文设计《关于会计理论结构的探讨论文》.doc
- 毕业论文设计《关于混搭式风格私家庭院景观设计的探索论文》.doc
- 毕业论文设计《关于集约化养鸡场综合防疫措施的探讨》.doc
- 毕业论文设计《关于几种插值多项式的比较分析》.doc
- 毕业论文设计《关于农村土地流转现状的分析》.doc
- (正式版)DB51∕T 1867-2014 《袋栽黑木耳生产技术规程》.docx
- (正式版)DB51∕T 2413-2023 《油橄榄密植丰产栽培技术规程》.docx
- (正式版)DB51∕T 2436-2017 《川菜东坡一品肉烹饪工艺技术规范》.docx
- (正式版)DB51∕T 2396-2017 《农村电子商务服务站(点)服务与管理规范》.docx
- (正式版)DB51∕T 2419-2017 《桢楠扦插育苗技术规程》.docx
- CN105145773B 一种无花果曲奇饼干及其制作方法 (江苏农林职业技术学院).docx
- CN105203825A 微测量电极的制作方法和热电势的测量方法及相关装置 (国家纳米科学中心).docx
- CN105137533B 一种啁啾光纤光栅及其制作方法 (南京航空航天大学).docx
- (正式版)DB51∕T 2453-2018 《巴山新居公共管理指南》.docx
- (正式版)DB51∕T 1892-2014 《川西北地区沙化土地治理技术规程》.docx
原创力文档

文档评论(0)