Skip to content

Calculating Square root with divide and conquer method

License

Notifications You must be signed in to change notification settings

AsadiAhmad/Square-root-DC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Square-root-DC

Calculating Square root with divide and conquer method

Simple way :

time complexity : O(n)

Divide and Conqure way :

time complexity : O(log₂ N)

Compare simple way and divide and conqure :

Theory :

Time complexity of Simple way : O(n)

Time complexity of Divide and Conqure way : O(log₂ N)

Act :

Time complexity of Simple way For 10 digit costs 21ms

Time complexity of Divide and Conqure way For 1000 digit costs 44ms

About

Calculating Square root with divide and conquer method

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages