CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - fenzhifa
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
GUI Develop
Windows Kernel
WinSock-NDIS
Driver Develop
ADO-ODBC
GDI-Bitmap
CSharp
.net
Multimedia Develop
Communication
Shell api
ActiveX/DCOM/ATL
IME Develop
ISAPI-IE
Hook api
Screen saver
DirextX
Process-Thread
Console
File Operate
Printing program
Multi Monitor
DNA
Other
Search - fenzhifa - List
[
Other
]
fenzhifa
DL : 0
这是分治法的小程序,来自书本上的作业. 没什么大的改变.看看就好-This is a small sub-rule law procedures, from the books work. No big change. Look like
Date
: 2025-12-16
Size
: 2kb
User
:
cmwwmc
[
Other
]
fenzhifa
DL : 0
分治法的思想是将一个难以直接解决的大问题分割成一些规模较小的几个相似的问题来解决,分治法的求解过程是将整个问题分解成若干个小问题后分而治之,如果分解得到的子问题相对来说还太大,则可反复使用分治策略将这些子问题分成更小的同类型子问题,直至产生出方便求解的子问题,必要时逐步合并这些子问题的解,从而得到问题的解。分治法的求解通常会用到递归,通常会说分治法是一种找大规模问题与小规模问题关系的方法,是递归设计方法的一种具体策略。分治法的基本步骤在每一层递归上都有三个步骤: ① 分解:将原来的规模相对较大的问题分解为规模较小的、相互独立的、与原问题形式相同的子问题。 ② 解决:若子问题规模较小而容易解决则直接解决,否则再继续分解为更小的子问题,直到容易解决。 ③ 合并:将已求解的各个子问题的解,逐步合并成原问题的解。 当求解一个输入规模为n并且取值比较大的问题时,可以使用分治法提高解决问题的效率。 -The idea is to divide and conquer difficult to directly solve a big problem is divided into some smaller number of similar problems to solve, divide and conquer the whole problem solving process is divided into several small problems of divide and rule, if the decomposition sub-problems are too big, relatively speaking, you can divide and conquer strategy of repeated use of these sub-problems into smaller sub-problems of the same type, until the child produces easy to solve the problem, if necessary, to gradually merge the sub-solution of the problem, to be the solution. Divide and conquer method is usually used for solving recursive, divide and conquer is usually said to find large-scale problems is a problem with the relationship between small-scale method is a recursive design specific strategies. The basic steps to divide and conquer recursion on each floor has three steps: ① decomposition: the relative size of the original large problem into smaller, independent, original proble
Date
: 2025-12-16
Size
: 1kb
User
:
ss
[
Other
]
fenzhifa
DL : 0
分治法排序。 分治策略是:对于一个规模为n的问题,若该问题可以容易地解决(比如说规模n较小)则直接解决,否则将其分解为k个规模较小的子问题,这些子问题互相独立且与原问题形式相同,递归地解这些子问题,然后将各子问题的解合并得到原问题的解。-Divide and conquer sort
Date
: 2025-12-16
Size
: 838kb
User
:
raul
[
Other
]
fenzhifa
DL : 0
通过使用分治法进行二分搜索,代码已验证可放心使用-Binary search by using the divide-and-conquer method, the code can be assured Verified ~ ~
Date
: 2025-12-16
Size
: 4kb
User
:
Ein
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.