gpt4 book ai didi

algorithm - 迭代函数——分而治之函数

转载 作者:塔克拉玛干 更新时间:2023-11-03 04:48:36 25 4
gpt4 key购买 nike

我刚刚开始学习算法分析与设计类(class)?我只想知道:迭代函数和分治函数有什么区别?它们是一样的吗?

最佳答案

分而治之 来自 wikipedia :

A divide and conquer algorithm works by recursively breaking down a problem into two or more sub-problems of the same (or related) type, until these become simple enough to be solved directly.

来自 Wikipedia 的迭代函数:

In this process, starting from some initial number, the result of applying a given function is fed again in the function as input, and this process is repeated.

所以他们不一样

关于algorithm - 迭代函数——分而治之函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15230983/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com