由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Binary GCD algorithm
相关主题
帮看看C++分子式化简的程序,总是说exprected primary expressquestion about google algorithm/architecture (转载)
请问大家一个eclipse CDT的问题 (转载)bit count in value from 0 - 255
请问有什么c++ algorithm and data structure 好的书吗?[转载] Mac C++ program question
sort algorithm谢谢大家!One More Question! Re: C 程序计算结果
Algorithms and Data Structures那本比较好呢?贡献一下:本版上搜集的 Google 面试题 (转载)
问个Hadoop Word Count的简单问题一道c++ 题, 找出duplicate numbers
Introduction to Algorithms | The MIT PressHow to encode YYYY-MM-DD?
真心求助 .net c# 算法,数据结构书,网站Embedded C 编程问题求助
相关话题的讨论汇总
话题: 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版参与讨论
相关主题
Embedded C 编程问题求助Algorithms and Data Structures那本比较好呢?
error while building gcc问个Hadoop Word Count的简单问题
cost time of shift operation?Introduction to Algorithms | The MIT Press
reverse bits 的题目真心求助 .net c# 算法,数据结构书,网站
帮看看C++分子式化简的程序,总是说exprected primary expressquestion about google algorithm/architecture (转载)
请问大家一个eclipse CDT的问题 (转载)bit count in value from 0 - 255
请问有什么c++ algorithm and data structure 好的书吗?[转载] Mac C++ program question
sort algorithm谢谢大家!One More Question! Re: C 程序计算结果
相关话题的讨论汇总
话题: gcd话题: binary话题: algorithm话题: both话题: would