Luo et al wrote in a recent paper [A Fast Algorithm for Computing gcd Based on Binary Multi Precision,this journal,2002,Vol.32,No.5,pp.542 545; MR 2003h:11161 ] that “the classical Euclid’s algorithm for computing t...Luo et al wrote in a recent paper [A Fast Algorithm for Computing gcd Based on Binary Multi Precision,this journal,2002,Vol.32,No.5,pp.542 545; MR 2003h:11161 ] that “the classical Euclid’s algorithm for computing the gcd of two integers takes time O(\%ln\% 3N)”, and “present” an improved algorithm (called “binary gcd” for short) based on binary multi precision with time complexity O(\%ln\% 2N). In this paper,we point out two well known facts: firstly,the binary gcd,without usefull implimentation improvements, is identical in mathematical theory to Stein’s Binary GCD algorithm published in 1967; secondly,both Euclid’s algorithm and Binary GCD have the same time complexity O(\%ln\% 2N).展开更多
GCD(Grand Central Dispatch)模型是苹果公司于2013年首先在苹果系统编程中提出的概念.GCD模型有效简化了开发编程、并行编程以及多线程编程的模型,使开发人员进行开发,并行编程更加方便,容易。虽然苹果公司公开了GCD的代码,但是GCD部...GCD(Grand Central Dispatch)模型是苹果公司于2013年首先在苹果系统编程中提出的概念.GCD模型有效简化了开发编程、并行编程以及多线程编程的模型,使开发人员进行开发,并行编程更加方便,容易。虽然苹果公司公开了GCD的代码,但是GCD部分开源代码完全基于苹果公司的闭源开发库:Foundation之上,无法独立使用。本文基于开源的GCD方案,移植到开源Objective-C的开发框架ObjFW之上。展开更多
文摘Luo et al wrote in a recent paper [A Fast Algorithm for Computing gcd Based on Binary Multi Precision,this journal,2002,Vol.32,No.5,pp.542 545; MR 2003h:11161 ] that “the classical Euclid’s algorithm for computing the gcd of two integers takes time O(\%ln\% 3N)”, and “present” an improved algorithm (called “binary gcd” for short) based on binary multi precision with time complexity O(\%ln\% 2N). In this paper,we point out two well known facts: firstly,the binary gcd,without usefull implimentation improvements, is identical in mathematical theory to Stein’s Binary GCD algorithm published in 1967; secondly,both Euclid’s algorithm and Binary GCD have the same time complexity O(\%ln\% 2N).
文摘GCD(Grand Central Dispatch)模型是苹果公司于2013年首先在苹果系统编程中提出的概念.GCD模型有效简化了开发编程、并行编程以及多线程编程的模型,使开发人员进行开发,并行编程更加方便,容易。虽然苹果公司公开了GCD的代码,但是GCD部分开源代码完全基于苹果公司的闭源开发库:Foundation之上,无法独立使用。本文基于开源的GCD方案,移植到开源Objective-C的开发框架ObjFW之上。