Flow Chart and Pseudocode

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 91

  • @sudipsen08
    @sudipsen08 2 роки тому +32

    There are some mistakes in the lecture 3 which are mentioned below:
    At 11:25 mins of the Lecture 3: Flow Chart and Pseudocode, in the flow chart of printing average of 3 numbers the final print statement should be “Print AVG” instead of “Print SUM” as we are finding the Average of 3 numbers.
    At 7:12 mins of the Lecture 3: Flow Chart and Pseudocode, Regarding the symbols used to represent the flow chart, generally oblong symbol is used to represent START and END of a flow chart and a parallelogram symbol is used to represent INPUT and OUTPUT, and the Circle symbol is used as a connector, when we need to represent the continuation of flow chart when there is shortage of space.
    At 18:52 mins of the Lecture 3: Flow Chart and Pseudocode, in the flow chart of printing the average of N numbers: after reading the number and storing it in N we should store in another variable say M. So after the statement “Read the value of N” there will be another statement which will be “M=N” in a rectangular box. And after the decision box instead of AVG=SUM/N it will be AVG=SUM/M, as the value of N is becoming zero at the end of the decision loop.
    At 28:07mins of the Lecture 3: Flow Chart and Pseudocode: in the flow chart for finding Max of N positive integer please follow the flow chart drawn in blue colour. Please ignore the corrections made.

  • @vijaytiwari6404
    @vijaytiwari6404 4 роки тому +11

    No correction needed in flow chart it is absolutely correct.
    Otherwise program never decrement number for N < max.

    • @razaacs_1109
      @razaacs_1109 4 роки тому

      Flowchart creates ambiguity between value of number at Nth place and N itself. I Mean value of number at 9th place and 9 itself

    • @razaacs_1109
      @razaacs_1109 4 роки тому

      31:30 What if the Nth number at starting is 0, it will result in wrong max

  • @halarefaie8675
    @halarefaie8675 5 років тому +14

    Thank you so much. I learned more from this than the two years I’ve been doing computer science in school.

  • @khushibhoj
    @khushibhoj 4 роки тому +69

    In my school they taught us that oblong is for start and stop and parallelogram is for input/output

    • @selmonboi684
      @selmonboi684 4 роки тому +9

      They r right

    • @spandexspleen
      @spandexspleen 3 роки тому +4

      This video is from 2017. At that time those symbols were used now they have changed.

    • @pratikdubey9083
      @pratikdubey9083 3 роки тому

      @@spandexspleen achhaa

    • @udaypratapsingh8923
      @udaypratapsingh8923 3 роки тому +2

      @@pratikdubey9083 nahi bhai he is professor at IIT kharagpur

    • @pratikdubey9083
      @pratikdubey9083 3 роки тому

      @@udaypratapsingh8923 achha

  • @aaravpant2952
    @aaravpant2952 5 років тому +7

    Thank you so much sir and whole I.I.T.s and whole N.P.T.E.l for providing this informative video and such an amazing platform of learning.Thank you very very much . Keep it up.....

  • @nitesh9988
    @nitesh9988 2 роки тому +4

    These are the professors whose books we all read .
    Thanks for giving the insight of IITs method of teaching.

  • @ShrutiChakrabortyMusic
    @ShrutiChakrabortyMusic 6 років тому +21

    As we decrement N by 1 each time, at the end the value stored in N becomes 0. So right in the beginning we have to assign the value of N initially to another variable say N1 outside the loop and while finding the average it should be AVG=SUM/N1.

    • @abhinavy862
      @abhinavy862 4 роки тому +2

      Yes. If N is being decremented then dividing by N when N=0 leads to error.

    • @razaacs_1109
      @razaacs_1109 4 роки тому +3

      value of number at nth place may or may not be equal to n. This ambiguity exist in the flowchart

    • @aryankhandelwal15
      @aryankhandelwal15 3 роки тому

      exactly

    • @darshan_the_admin
      @darshan_the_admin 2 роки тому

      Yes Shruti, right
      Now what must be written in rectangle box?

  • @g2agrawal165
    @g2agrawal165 4 роки тому +16

    30:35 no need o change arrow instead add one more arrow from n=0 to read number

    • @mohdnauman5012
      @mohdnauman5012 3 роки тому +2

      exactly....i was also confused....came here to clarify if someone else also noted

  • @kaustubhgupta7012
    @kaustubhgupta7012 3 роки тому +8

    thanks sir for providing quality education for free💖

  • @Emma-fg7qm
    @Emma-fg7qm 2 роки тому +1

    very simplified. Excellent !!!!!

  • @problemsolvingthroughprogr8170
    @problemsolvingthroughprogr8170  6 років тому +6

    Yes, you can do that, but in that case you have to first Read 3 numbers and store it in Number1, Number 2 and Number 3. Then you can do the sum as SUM=Number1+Number2+Number3

    • @thirumalaivasan6745
      @thirumalaivasan6745 6 років тому

      Sir, you have did a mistake here! in the flow chat, 13:38:01 (exactly) here, the Start --> get num1 --> sum = sum + num1 -->.... etc, at last the final calculation you did is:
      AVG = SUM/3 right??
      then why do you "print" the sum? and what's the use of AVG variable?
      if you print the sum, as you said the example 5+8+3 = 16 will be printed 16 and not the 5.0, which is the floating point number..
      i think you should print the avg value instead of sum!
      correct me if am wrong, i guess avg should be printed as a floating point number at last? isn't it?

  • @wordsof_hope
    @wordsof_hope 2 роки тому +1

    You are a great teacher

  • @premkumar-vm4fd
    @premkumar-vm4fd 3 роки тому +1

    There are types of variable declaration global and local, since computing of average is done outside the loop the N will retain the value, changing the N inside the loop will not effect the outside one

  • @GauravKumar-bx7ry
    @GauravKumar-bx7ry 5 років тому +16

    The flowchart is right I think

  • @razaacs_1109
    @razaacs_1109 3 роки тому +4

    The last flowchart of max of N positive integers was already correct why did the lecturer redrew and made it wrong.

  • @shibendumahata
    @shibendumahata 11 місяців тому

    From where did you get those flowchart symbol meaning? A circle implies connector. Why is it used for START?

  • @mateensheikh7104
    @mateensheikh7104 4 роки тому +1

    uncle you teach nice i understood everything

  • @faisal_tarshon
    @faisal_tarshon Рік тому +1

    thank u sir

  • @darshan_the_admin
    @darshan_the_admin 2 роки тому

    Please anyone say me, finding average of 3 number is like
    Start-> Read a, b, c-> Sum=0, Sum=a+b+c, Avg=Sum/3-> Stop

  • @redgamer6105
    @redgamer6105 3 роки тому +2

    That flowchart was already correct 😭😭😭😭

  • @sahanasshenoy8878
    @sahanasshenoy8878 4 роки тому +4

    Sir, while finding average of N numbers, Flow chart is not giving correct answer. If I say AVG= SUM/N now N is already become zero at the end of loop. So we should save this N to some other number and decrement?

    • @lakshyakaviya5519
      @lakshyakaviya5519 3 роки тому

      but that value of n will not be the global value so it wouldn't affect the average because still the global value is the original value of n

  • @medo_sweeteljugmani1732
    @medo_sweeteljugmani1732 5 років тому +4

    sorry but i need to print AVG NOT SUM!!!!!!! check it at the end

  • @sheerinsheerin4827
    @sheerinsheerin4827 3 роки тому

    Sir no need to check N-1 in last problem as we already checked N as max than obviously it max than other
    numbers (N-1,N-2,......) it shows that there is an error in flow chart,as u not considered N positive integers, u considered it only as max upto Nth
    positive integer which is also stops at first step (to read number N which is max).

  • @rahul4142
    @rahul4142 4 роки тому +3

    Thank you sir

  • @itsmeprincetiwary
    @itsmeprincetiwary 5 років тому +3

    Thankou so much sir

  • @shibendumahata
    @shibendumahata 11 місяців тому

    17:51 You are dividing sum by 0. Astonishing how one can make such a mistake!

  • @ankanbrahmachary6581
    @ankanbrahmachary6581 5 років тому +5

    with all due respect sir .....u made a mess of this....the original code was absolutely correct for finding n max no.....coz n should reduce even if num< max.... and repeat when n>0

  • @srinivaschowdaryappasani2248
    @srinivaschowdaryappasani2248 2 роки тому +1

    yaa flow chart at last was already correct

  • @inspiringtobecoder3699
    @inspiringtobecoder3699 2 роки тому

    The average of number problems - I think you should change update logic to reflect N!=0 since the concept of global and local variables is not introduced. Just going step by step, average is being calculated by sum divided by 0 since we are decrementing N. You can increment N and have a condition for it rather than decrement logic.

  • @042nihar2
    @042nihar2 4 роки тому +2

    The flowchart is incorrect and will yield infinity irrespective of the input since N becomes zero at the last step. Instead a new variable must be introduced right after Read N. This variable must be equated to N(ex:X=N). If we replace N with this new variable and write X=N-1 and X=0 in the flowchart, the loop will continue until X=0 where it stops looping and this will have no effect on the value of N used in the final step.

  • @jibyjohn9101
    @jibyjohn9101 6 років тому +18

    The lecture has a lot of mistakes, idk if it is how they teach in IIT. These are the mistakes:
    1. Pseudocode has START as first step. Shown wrong on the avg of 3 numbers one.
    2. If you keep decrementing N in finding sum of N numbers, it'll get 0 at the end and the avg will become infinite as avg=sum/N.
    3. Flowchart for Max of N numbers was correct before he made the changes. The changes he made doesn't make sense and will keep going into infinite loop until every number input isn't greater than the previous.

    • @prabalsrivastava4945
      @prabalsrivastava4945 6 років тому +4

      Jiby John point(3) - exactly... He made it more confusing for beginners like me.
      The videos should be checked n corrected before uploading it as this was a blunder.

    • @hiteshpal3323
      @hiteshpal3323 5 років тому +1

      jiby john point (2)-Here the n denotes the read the value of n. It is right you just have to think it correctly.
      point(3)-The changes are corrected because when you put MAX = 0 and when N is not greater than zero then it is obvious that the value is zero because we finding MAX of N positive numbers. And it will not go in infinite loops because we take higher numbers so that it became 0 and finish the program

    • @bishalrajak8681
      @bishalrajak8681 5 років тому

      You are right

    • @paragkeshardas3526
      @paragkeshardas3526 4 роки тому

      Any better UA-cam channel??

    • @g2agrawal165
      @g2agrawal165 4 роки тому

      you are right but instead of changing he should add a arrow from n=0 to read number no need to change that arrow

  • @tyrion6178
    @tyrion6178 3 роки тому +2

    Any bietian

  • @rahulranjan1121
    @rahulranjan1121 5 років тому +1

    Sir. Why we assume sum to be 0 while finding the average of 3 numbers??

  • @g2agrawal165
    @g2agrawal165 4 роки тому +4

    20:05 avg will be infinite since sum is 0

    • @my_stery754
      @my_stery754 3 роки тому

      The value of N to be stored in another variable

    • @terribleloser.24
      @terribleloser.24 3 роки тому

      Keep the value of N stored in another variable say M and then use M later for computing AVG

  • @aryankhandelwal15
    @aryankhandelwal15 3 роки тому

    ty sir v informative

  • @faizanalam1244
    @faizanalam1244 10 днів тому

    12:20 print avg

  • @ayan.mansuri100
    @ayan.mansuri100 26 днів тому

    16:35

  • @manojsrivastava8546
    @manojsrivastava8546 4 роки тому

    Thanks

  • @razaacs_1109
    @razaacs_1109 4 роки тому

    value of number at nth place may or may not be equal to n. This ambiguity exist in the flowchart

  • @vaishnavichauhan5790
    @vaishnavichauhan5790 2 роки тому

    Sir even if the number is not greater than MAX, N will decrement because we have already read one number. Please clarify my
    doubt sir?

  • @AdityaAnandCSE--
    @AdityaAnandCSE-- 2 роки тому

    2ne Lecture Done

  • @sickomode6948
    @sickomode6948 5 років тому +1

    peng

  • @selmonboi684
    @selmonboi684 4 роки тому +1

    Mistakes too many mistakes in flowchart oblong is for start and end and for input or output we use //gram

  • @ramizmostafi3118
    @ramizmostafi3118 5 років тому +2

    I don't know why this sir is only wasting time by repeating the first three module instead of teaching the main part of c. Among the first three module only second module is important and other two are useless.You can express the gist of these module by a single module

    • @sarahlolo2100
      @sarahlolo2100 5 років тому +1

      Do you know any good video source who teaches this better?

    • @ramizmostafi3118
      @ramizmostafi3118 5 років тому

      @@sarahlolo2100 hiii

    • @tombrady7390
      @tombrady7390 5 років тому

      Are u iitian

    • @lakshmangamers1280
      @lakshmangamers1280 3 роки тому +1

      Actually iam not saying about this lecture but
      This topics are also required because we must know how programming is useful in our daily and
      How the code actually works when we wrote it .this flow chart and pseudo code also imp .
      I know you completed the course this is for future viewers 😅