文件名称:lq
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:563.54kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
对于给出的一组数据,要找到它们的最大或者最小值,运用递归和分治的思想方法来解决问题。n=2时,一次比较就可以找出两个数据元素的最大元和最小元。 当n>2时,可以把n个数据元素分为大致相等的两半, 一半有?n/2?个数据元素,而另一半有?n/2?个数据元素。 先分别找出各自组中的最大元和最小元,然后 将两个最大元进行比较,就可得n个元素的最大元; 将两个最小元进行比较,就可得n个元素的最小元。-For a given set of data to find their maximum or minimum, the use of recursion and divided way of thinking to solve the problem. n = 2, the first comparison of two data elements can be found on the maximum and minimum yuan yuan. When n> 2 when n data elements can be divided into roughly equal halves, half of the? N/2? Data elements, while the other half there? N/2? Data elements. First, to identify their group were the largest and smallest yuan yuan, and then compare the two greatest element, you can have n elements of the greatest element to compare the two smallest element, you can get the smallest element of n-yuan .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lq/Debug/lq.exe
lq/Debug/lq.ilk
lq/Debug/lq.obj
lq/Debug/lq.pch
lq/Debug/lq.pdb
lq/Debug/StdAfx.obj
lq/Debug/vc60.idb
lq/Debug/vc60.pdb
lq/lq.cpp
lq/lq.dsp
lq/lq.dsw
lq/lq.ncb
lq/lq.opt
lq/lq.plg
lq/ReadMe.txt
lq/StdAfx.cpp
lq/StdAfx.h
lq/Debug
lq
lq/Debug/lq.ilk
lq/Debug/lq.obj
lq/Debug/lq.pch
lq/Debug/lq.pdb
lq/Debug/StdAfx.obj
lq/Debug/vc60.idb
lq/Debug/vc60.pdb
lq/lq.cpp
lq/lq.dsp
lq/lq.dsw
lq/lq.ncb
lq/lq.opt
lq/lq.plg
lq/ReadMe.txt
lq/StdAfx.cpp
lq/StdAfx.h
lq/Debug
lq
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.