Assignment 3 (Due: 3 November 2010)



The table at the bottom of the webpage gives the students' roll numbers and the problems assigned to them. The problem numbers are as in the following list.

    STATISTICS

  1. Find the p-order moments for a given list of numbers. The cases for p = 0, 1, 2, 3, 4 must be implemented.
  2. Find the minimum, median and maximum from a given list of numbers.
  3. Given two lists of numbers of the same size, compute their statistical and rank correlations
  4. Given a set of 2D coordinates (x,y), fit a line y = mx + c using linear regression.
  5. Given a set of 2D coordinates (x,y) fit a line y = mx + c using RANSAC (RANdom SAmpling and Consensus) approach.
  6. Given a value x, and the mean mu and standard deviation sigma of a Normal Distribution, compute the probability of occurrence of x, the cumulative probability of occurrence of a value v < x, and the cumulative probability of occurrence of a value v > x.
  7. Given the probability of success p and the number of trials N, write a function to compute the probability of succeeding k times out of N using the Binomial Distribution. Also, give an option to find the probability of succeeding at least k times.
  8. Given a list of numbers read from a file or given on standard input, compute their histogram, cumulative and pareto histograms.


  9. MATRICES AND NUMERICAL METHODS

  10. Given two matrices, write functions to add, subtract and multiply them
  11. Given a matrix, write a function to compute its eigenvalues and eigenvectors.
  12. Given a linear system of equations, find a function to solve them using Gauss-Jordan method.
  13. Given a matrix, find its LU-decomposition
  14. Write a function to find the roots of an equation using the bisection method
  15. Write a function to find the roots of an equation using Ridders method
  16. Write a function to find the roots of an equation using Newton-Raphson method
  17. Write a function to compute integrals using Simpson's Rule and any one other classical method
  18. Write a function to compute integrals using Gaussian Quadrature method.
  19. Write a program to compute the Gamma Function
  20. Write a program to compute the Beta Function


  21. MULTIPLE PRECISION ARITHMETIC

    All the students working on the problems assigned in this section should see me before they start their work.
  22. Write functions to add, subtract and multiply long integers
  23. Write a function to multiply two long integers. See if you can find an efficient algorithm.
  24. Write a function to compute a mod b where a and b are both long integers. Use it to compute inverse of a long integer.
  25. Write a function to compute a^b
  26. Write a function to compute discrete logarithms, i.e., x when a^x mod b is given along with a and b.
  27. Implement two methods to determine if a given long integer is a prime number


  28. TEXT AND DOCUMENT PROCESSING

  29. Given a page of text, identify paragraphs, sentences and also their counts (i.e., how many)
  30. Given a page of text, identify words and count their frequency. See if you can handle upper and lower cases. Your output should include data of word_length vs. frequency.
  31. Write functions to do character level analysis for counting the number of upper, lower-case letters, vowels, consonants, punctuation and any other.
  32. Write a function to retrieve a sentence containing a given word or a phrase


  33. MISCELLANEOUS PROBLEMS

  34. Given acceleration due to gravity g and the length of a simple pendulum, write a function to compute the time period of oscillation
  35. Given a set of (x,y) coordinates, find the area enclosed by them
  36. Find the value of sin(x), cos(x) and log(x) given x using any of their series approximations.
  37. Given two sets of points, find the distance between the two sets using Hausdorff distance
  38. Given a string of text, write a function to compute a CRC (Cyclic Redundancy Check) sum.




Problem Assignment

Roll No. Problem Nos.
10MCMC01 26, 28, 29, 30
10MCMC02 20, 21, 22, 30
10MCMC03 26, 28, 29, 33
10MCMC04 9, 11, 13, 30
10MCMC05 19, 17, 15, 30
10MCMC06 9, 17, 14, 30
10MCMC07 1, 2, 7, 31
10MCMC08 10, 12, 14, 31
10MCMC09 9, 18, 16, 32
10MCMC10 25, 24, 23, 31
10MCMC12 27, 29, 26, 32
10MCMC14 20, 22, 25, 32
10MCMC15 10, 11, 12, 33
10MCMC16 4, 3, 6, 32
10MCMC17 19, 12, 14, 30
10MCMC18 26, 27, 28, 31
10MCMC19 20, 21, 23, 33
10MCMC20 22, 24, 25, 34
10MCMC21 5, 6, 8, 33
10MCMC22 1, 3, 8, 34
10MCMC23 8, 7, 5, 34
10MCMC24 15, 14, 13, 34
10MCMC25 27, 28, 29, 30
10MCMC26 24, 21, 23, 34
10MCMC27 4, 6, 5, 32
10MCMC28 26, 28, 29, 32
10MCMC29 1, 2, 4, 34
10MCMC30 4, 3, 5, 33
10MCMC31 16, 17, 18, 34
10MCMC32 17, 18, 19, 33
10MCMC33 16, 15, 14, 32
10MCMC35 5, 6, 2, 32
10MCMC36 11, 12, 13, 31
10MCMC37 10, 9, 19, 30
10MCMC38 5, 7, 4, 33
10MCMC39 26, 28, 29, 33
10MCMC40 8, 2, 5, 34
10MCMC41 20, 24, 25, 30
10MCMC43 1, 2, 3, 34
10MCMC44 27, 29, 26, 32
10MCMC45 10, 18, 16, 31
10MCMC46 9, 11, 13, 32
10MCMC47 10, 14, 18, 33
10MCMC48 8, 7, 1, 31
10MCMC49 26, 27, 28, 31
10MCMC50 27, 28, 29, 30
10MCMC51 4, 6, 1, 33
10MCMC52 5, 6, 7, 32
10MCMC53 15, 17, 19, 34
10MCMC54 8, 2, 6, 31
10MCMC55 25, 22, 23, 31
10MCMC56 11, 9, 13, 31
10MCMC57 10, 11, 15, 30
10PCMT01 16, 18, 14, 34
10PCMT03 17, 15, 13, 33
10PCMT04 16, 12, 19, 32