Skip to content

什么是模拟? #748

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
9a-aaaaaaaa opened this issue Nov 18, 2022 · 2 comments
Open

什么是模拟? #748

9a-aaaaaaaa opened this issue Nov 18, 2022 · 2 comments

Comments

@9a-aaaaaaaa
Copy link

9a-aaaaaaaa commented Nov 18, 2022

模拟是一类算法的名称吗?,我个人理解是抽象一类东西到程序中,但是没有资料佐证,求大佬解释以下。

@dengWuuu
Copy link

dengWuuu commented Dec 2, 2022

是的,模拟就是通过题意,按照题目的意思用代码把他写出来,个人理解,模拟不算算法吧大概
举一个🌰:一个题目要求你返回1-n的和, 你模拟就是定义一个变量+1 +2 一直加到n 但是还有直接用等差数列的算法, 第一个就叫模拟,其他模拟还有什么操控矩阵旋转,逆时针打印矩阵之类的

@dengWuuu
Copy link

dengWuuu commented Dec 2, 2022

希望能解答你的疑惑

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants