Algorithms -- 2009-2010 -- 3

From Wikiversity
Jump to navigation Jump to search

Quick links: front; laboratories agenda, 1, 2, 3, 4, 5, 6, 7, evaluation, tools, references.


  • Laboratory / seminar problem set 2:
  • Laboratory / seminar problem set 3:


From the first problem set, exercises:

  • based on problem 4 (for en), or 6 (for ro): create a function than converts a number from base a to base b (the inputs and outputs are both lists of digits);

From the second problem set, exercises:

  • problem 9 (for both en and ro): find the smallest two values from an array;
    • generalize the solution to find the smallest n values from an array;
  • problem 10 (for both en and ro): digit frequencies and cummulated frequencies;

Ciprian Dorin Crăciun,