Logo Data Structures and Algorithms with Object-Oriented Design Patterns in Java
next up previous contents index

Projects

  1. Write a Java method that takes a single integer argument n and has a worst-case running time of O(n).
  2. Write a Java method that takes a single integer argument n and has a worst-case running time of tex2html_wrap_inline58202.
  3. Write a Java method that takes two integer arguments n and k and has a worst-case running time of tex2html_wrap_inline59928.
  4. Write a Java method that takes a single integer argument n and has a worst-case running time of tex2html_wrap_inline58920.
  5. Write a Java method that takes a single integer argument n and has a worst-case running time of tex2html_wrap_inline58926.
  6. Write a Java method that takes a single integer argument n and has a worst-case running time of tex2html_wrap_inline58936.
  7. The generalized Fibonacci numbers of order tex2html_wrap_inline59942 are given by

    equation2489

    Write both recursive and non-recursive methods that compute tex2html_wrap_inline59944. Measure the running times of your algorithms for various values of k and n.


next up previous contents index

Bruno Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.