4. Performance Analysis (Space complexity & Time Complexity)

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2018
  • Technical lectures by Shravan Kumar Manthri.
    Watch "Patterns in C- Tips & Tricks " in the following link...
    www.udemy.com/course/patterns...
    You can watch "Tricky 150 mcqs in C" in the following link
    www.udemy.com/course/best-150...
    Technical lectures by Shravan Kumar Manthri.
    Watch Technical C programming
    • Technical C coding : p...
    Watch Data Warehousing & Data Mining
    • 1. Multi-Dimensional ...
    Watch Design & Analysis of Algorithms
    • 1. Introduction to the...
    Watch Formal Languages & Automata theory
    • 1. Introduction to Aut...
    Visit us: www.csegurus.com
    Contact me @ fb : shravan.kites@gmail.com
    Like us on fb: CSE GURUS
    Chapter-4 : Performance Analysis (Space complexity & Time Complexity)
    B.Tech CSE and IT: Design and Analysis of Algorithms.
    This video explains Space complexity & Time Complexity with 3 different examples. #ShravankumarManthri#CSEGURUS #ShravankumarManthri#CSEGURUS

ความคิดเห็น • 17

  • @sweetysai3082
    @sweetysai3082 3 ปีที่แล้ว

    What is the difference of performance analysis and performance measurement?

  • @preetidudi6221
    @preetidudi6221 3 ปีที่แล้ว +7

    I have a doubt in algorithm 2 and 3 space complexity
    In algo2
    For i,n,s 1 unit each So 3 units
    And for array n units
    Then complexity = n+3 units
    In algo3
    For last step that is when n=0 then only if statement will run so the space needed is only for variable n
    As else statement will not run
    So space required 3n units for n=n to n=1 and then 1 unit for n=0
    Shouldn't the space complexity be 3n+1

    • @CSEGURUS
      @CSEGURUS  3 ปีที่แล้ว +1

      Of Corse you are right but 1 more memory space required for return 0.0. so it is 3n+2.

    • @Lahitha
      @Lahitha 2 ปีที่แล้ว

      @@CSEGURUS i think the answer is 3+n..

  • @songlover9437
    @songlover9437 5 ปีที่แล้ว +1

    In algorithm 3 for time complexity....both "if and else"time is counted?

    • @venkatasreeram
      @venkatasreeram 3 ปีที่แล้ว

      based on the input it will be counted...

  • @srivalliammulu3874
    @srivalliammulu3874 ปีที่แล้ว

    Plzz upload videos all paris shortest path and multistage graph

  • @sreelekhareddy8334
    @sreelekhareddy8334 4 ปีที่แล้ว

    why u have used 1(n) after taking a(n) in 3rd algorithm can u please explain

    • @CSEGURUS
      @CSEGURUS  4 ปีที่แล้ว +1

      As it is a recursive algorithm, we need to execute n no.of procedures and for each procedure , memory will be allotted separately so for procedure with parameter value as n, it has to store a[n]--->1 unit, 1(n) means memory required to store n value and 1 for return is required.. This must be applied for all procedures.

  • @phuvaneskumar5005
    @phuvaneskumar5005 4 ปีที่แล้ว +1

    Why didn't you count the return for space complexity in the first two algorithms?...

    • @CSEGURUS
      @CSEGURUS  4 ปีที่แล้ว

      Yea. we can count but i neglected. why because the value will be carried to the function where it is callled. So we will count the space for return statement in that called function instead here.

  • @wownow6780
    @wownow6780 2 หลายเดือนก่อน

    I got totally lost in the last 2 algorithms

  • @ashtrians
    @ashtrians 4 ปีที่แล้ว +1

    please add the ppts here it will be great help

    • @kurallanagendra1340
      @kurallanagendra1340 4 ปีที่แล้ว

      Better u take screenshots..and those screenshots u add to a doucement

  • @prabhnoorsingh4213
    @prabhnoorsingh4213 3 ปีที่แล้ว

    And it's not "2 into 3" it's "2 race to the power 3"

  • @prabhnoorsingh4213
    @prabhnoorsingh4213 3 ปีที่แล้ว +1

    Try to speak a bit slowly, you usually skip some words!! Otherwise good work👍

  • @pubggaming5889
    @pubggaming5889 2 ปีที่แล้ว

    Sir your explanation in recurrence problem time and space complexity is not understandable sir please say slow and neatly your explaining like revision for you sir but not for us 🙂