boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Binary GCD algorithm
相关主题
帮看看C++分子式化简的程序,总是说exprected primary express
请问大家一个eclipse CDT的问题 (转载)
请问有什么c++ algorithm and data structure 好的书吗?
sort algorithm
Algorithms and Data Structures那本比较好呢?
问个Hadoop Word Count的简单问题
Introduction to Algorithms | The MIT Press
真心求助 .net c# 算法,数据结构书,网站
question about google algorithm/architecture (转载)
bit count in value from 0 - 255
相关话题的讨论汇总
话题: gcd话题: binary话题: algorithm话题: both话题: would
进入Programming版参与讨论
1 (共1页)
z*********8
发帖数: 2070
1
would anyone explain why the running time is O(L^2), assume the numbers u, v
both have L bits.
Each step either or both u and v will be reduced by 1 bit, so totally there
would be O(L) steps, right?
t****t
发帖数: 6806
2
通常GCD这样的算法是要考虑位数的,因为通常位数会非常大.

v
there

【在 z*********8 的大作中提到】
: would anyone explain why the running time is O(L^2), assume the numbers u, v
: both have L bits.
: Each step either or both u and v will be reduced by 1 bit, so totally there
: would be O(L) steps, right?

1 (共1页)
进入Programming版参与讨论
相关主题
bit count in value from 0 - 255
[转载] Mac C++ program question
谢谢大家!One More Question! Re: C 程序计算结果
贡献一下:本版上搜集的 Google 面试题 (转载)
一道c++ 题, 找出duplicate numbers
How to encode YYYY-MM-DD?
Embedded C 编程问题求助
error while building gcc
cost time of shift operation?
reverse bits 的题目
相关话题的讨论汇总
话题: gcd话题: binary话题: algorithm话题: both话题: would