Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

例题7-13 UVa1374猜想 #47

Open
WangQiuc opened this issue May 15, 2020 · 0 comments
Open

例题7-13 UVa1374猜想 #47

WangQiuc opened this issue May 15, 2020 · 0 comments

Comments

@WangQiuc
Copy link

WangQiuc commented May 15, 2020

书中有一个猜想,每次总是使用”刚刚得到“的那个数。
这个猜想可以尝试用反证法证明,不知道是否正确。
假设目标数X最少需要d次乘除法求出,那么在解答树上,X位于深度d,则根据猜想假设,X一定由X(d-1)求出: X = X(d-1) +/- Xk,0 <= k <= d-1。
现在给出反例,X无法由Xd-1得到,但可以由另外路径中两个结点Xi, Xj得到,即X = Xi +/- Xj,0 <= i <= j < d-1,那么在另一条路径,0--i--j,X = X = Xi +/- Xj,那X可以在第j+1层就被求出,即只需要j+1 次乘除法就可以求出,与假设最少需要d(>j+1)次乘除法相悖,因此反例不存在。

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

No branches or pull requests

1 participant