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

Projects

  1. Write a C# method that takes a single integer argument n and has a worst-case running time of O(n).
  2. Write a C# method that takes a single integer argument n and has a worst-case running time of tex2html_wrap_inline58403.
  3. Write a C# method that takes two integer arguments n and k and has a worst-case running time of tex2html_wrap_inline60131.
  4. Write a C# method that takes a single integer argument n and has a worst-case running time of tex2html_wrap_inline59121.
  5. Write a C# method that takes a single integer argument n and has a worst-case running time of tex2html_wrap_inline59127.
  6. Write a C# method that takes a single integer argument n and has a worst-case running time of tex2html_wrap_inline59137.
  7. The generalized Fibonacci numbers of order tex2html_wrap_inline60145 are given by

    equation2495

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


next up previous contents index

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