Write a recursive procedure to draw a line segment between (x0, y0) and (x1, y1) on a screen of pixels with integer coordinates. (Hint: The pixel closest to the midpoint is not far off the line segment.)
One day you notice that integer multiplication no longer works. Write a recursive procedure to multiply two values a and b using only addition. What is the complexity of this function?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here