About 50 results
Open links in new tab
  1. What does the notation T(n) mean? - Stack Overflow

    Nov 29, 2012 · From wikipedia article on O-notation: "A function T (n) that will express how long the algorithm will take to run (in some arbitrary measurement of time) in terms of the number of elements …

  2. algorithm - Solve: T (n) = T (n-1) + n - Stack Overflow

    Jan 26, 2013 · In Cormen's Introduction to Algorithm's book, I'm attempting to work the following problem: Show that the solution to the recurrence relation T(n) = T(n-1) + n is O(n2 ) using …

  3. How to make sklearn.metrics.confusion_matrix() to always return TP, TN ...

    Sep 15, 2017 · 15 I am using sklearn.metrics.confusion_matrix(y_actual, y_predict) to extract tn, fp, fn, tp and most of the time it works perfectly.

  4. Confusion matrix for values labeled as TP, TN, FP, FN

    Dec 22, 2020 · I can aggregate these values into total number of TP, TN, FP, FN. However, I would like to display a confusion matrix similar to the one generated by using the folowing:

  5. Complexity of the recursion: T (n) = T (n-1) + T (n-2) + C

    Dec 16, 2015 · If you were also interested in finding an explicit formula for T(n) this may help. We know that T(1) = c and T(2) = 2c and T(n) = T(n-1) + T(n-2) + c. So just write T(n) and start expanding. T(n) …

  6. Solving a Recurrence Relation: T (n)=T (n-1)+T (n/2)+n

    Sep 19, 2015 · I believe you are right. The recurrence relation will always split into two parts, namely T (n-1) and T (n/2). Looking at these two, it is clear that n-1 decreases in value slower than n/2, or in …

  7. Easy: Solve T (n)=T (n-1)+n by Iteration Method - Stack Overflow

    Dec 2, 2012 · Can someone please help me with this ? Use iteration method to solve it. T(n) = T(n-1) +n Explanation of steps would be greatly appreciated.

  8. algorithm - Solving T (n) = 4T (n/2)+n² - Stack Overflow

    Mar 3, 2013 · I am trying to solve a recurrence using substitution method. The recurrence relation is: T (n) = 4T (n/2)+n 2 My guess is T (n) is Θ (nlogn) (and i am sure about it because of master theorem), …

  9. Solve the recurrence: T(n)=2T(n/2)+n/logn - Stack Overflow

    Aug 25, 2012 · When you start unrolling the recursion, you will get: Your base case is T(1) = 1, so this means that n = 2^k. Substituting you will get: The second sum behaves the same as harmonic series …

  10. Calculating the Recurrence Relation T (n)=T (n-1)+logn

    Mar 25, 2014 · We are to solve the recurrence relation through repeating substitution: T(n)=T(n-1)+logn I started the substitution and got the following. T(n)=T(n-2)+log(n)+log(n-1) By logarithm product rule, l...