Division Algorithm

This is a discussion on Division Algorithm within the C Programming forums, part of the General Programming Boards category; Hi! I am in search for algorithm that performs division on two tables(representing large integers): number1 = table A (int) ...

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    6

    Division Algorithm

    Hi! I am in search for algorithm that performs division on two tables(representing large integers):
    number1 = table A (int)
    number2 = table B(int)

    number1/number2
    and the result should be also a table of int elements.

    Thank you in advance.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,671
    What's wrong with normal division and a for loop?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Chief Code Coloniser!
    Join Date
    Apr 2005
    Posts
    121
    This is another question that has the stench of homework

  4. #4
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    Quote Originally Posted by Salem
    What's wrong with normal division and a for loop?
    It hasn't been written and delivered on a silver platter.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,671
    All out of silver, will bronze do?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Division Algorithm
    By -=neo=- in forum C++ Programming
    Replies: 2
    Last Post: 02-01-2005, 06:32 PM
  2. Division Algorithm
    By LuckY in forum C++ Programming
    Replies: 27
    Last Post: 11-15-2004, 09:20 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21