3.2 Job Sequencing with Deadlines - Greedy Method

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • Job Sequencing with Deadlines
    2 problems are solved
    PATREON : www.patreon.co...
    Courses on Udemy
    ================
    Java Programming
    www.udemy.com/...
    Data Structures using C and C++
    www.udemy.com/...
    C++ Programming
    www.udemy.com/...

Комментарии • 558

  • @adityaghuge8460
    @adityaghuge8460 6 лет назад +502

    Damn reading those techmax for 3 hours and couldn't understand the problem, later Switching into your channel and problem gets solved in 10 mins.
    Thank you sir.

    • @abhimanyuchauhan1014
      @abhimanyuchauhan1014 6 лет назад

      thanks

    • @ji3g4j6jo3p
      @ji3g4j6jo3p 6 лет назад +15

      The power of RUclips (and Indians teaching math)

    • @sumedhdeshpande3420
      @sumedhdeshpande3420 6 лет назад +4

      dont read local authors read standard textbooks for algorithm read cormen only that will help you for long run......

    • @aaakashkumar
      @aaakashkumar 5 лет назад +3

      @@sumedhdeshpande3420 I don't think job sequencing in there in Cormen 🤔

    • @Bradcopo
      @Bradcopo 5 лет назад

      yeah watching teaching videos are really powerfull for this kind of subjects

  • @shashanksaxena6189
    @shashanksaxena6189 5 лет назад +947

    My teacher told me that DAA is the most toughest subject in CSE but sir u made it so easy.

    • @isaicsefxec6721
      @isaicsefxec6721 4 года назад +8

      💯

    • @russellfernandez57
      @russellfernandez57 3 года назад +22

      Was surfing my way through RUclips and stumbled here. What's DAA?

    • @soumyadeeproy9638
      @soumyadeeproy9638 3 года назад +39

      @@russellfernandez57 Design and Analysis of Algorithm

    • @noobbot6556
      @noobbot6556 3 года назад +13

      Your teacher is an idiot

    • @PulkitMalhotra
      @PulkitMalhotra 3 года назад +37

      @@noobbot6556 i think his teacher's teacher is not a good teacher

  • @abdulfahad4498
    @abdulfahad4498 4 года назад +70

    in college everyone says this subject is tough, but u made it look effortless. DAMN GREAT :)

    • @jay-rathod-01
      @jay-rathod-01 3 года назад +7

      They are deceiving your mind so that there is less competition in the placement interviews. See how kind I am😎😅

    • @shivakarthikrathod2026
      @shivakarthikrathod2026 2 года назад +2

      you r feeling easy because he didnt explaned the code he only explaned concept

    • @abdulfahad4498
      @abdulfahad4498 2 года назад +1

      @@shivakarthikrathod2026 after understanding concept u can easily write the code.

  • @nehadhas6564
    @nehadhas6564 5 лет назад +78

    Best Teaching Methodology ever...right from school days no teacher taught so well till my engineering last year...Hatsoff sir...Thank you so much sir...even a non engineering guy would understand every concept that u teach 👍

  • @SHASHANKRUSTAGII
    @SHASHANKRUSTAGII 4 года назад +60

    Abdul Bari sir is one of the best teachers I have ever seen in Algorithms. Thanks sir. :)

    • @pankajacharjee8742
      @pankajacharjee8742 Год назад

      Could you mention some others?

    • @NEXC
      @NEXC Год назад

      gate smashers & Jenny @@pankajacharjee8742

  • @Bradcopo
    @Bradcopo 5 лет назад +114

    you already covered everything in my syllabus 😂😂 thank you sir.i joined mca in the correct time

  • @ameenak-e2h
    @ameenak-e2h 8 месяцев назад +4

    I have always hated computer science subjects until I found this channel. Keeping it simple and interesting. I have always relied on his classes when it comes to my exams. It is really good. Great work, sir .

  • @jessesinger4790
    @jessesinger4790 4 года назад +26

    Insane how easy and intuitive this is once an expert teacher explains it.

  • @maheshvangala8472
    @maheshvangala8472 6 лет назад +132

    Sir please come to our college I will fight for you with my HOD
    every day I was wasting 1 hour of time in my class.. Instead I can watch your videos and improve my skills in Algorithms

  • @garvSensei999
    @garvSensei999 4 года назад +143

    For those who are confused let me clear a thing that the J2 have deadline of 2 but it can be finished in 1 so J2 is there in the first slot to get the maximum profit..
    Trick: write the max profit(J1) to it's exact deadline (2) so you can get a space(0-1) to write the next highest profit(J2) to get the overall max profit.

    • @starkendeavours7072
      @starkendeavours7072 2 года назад +2

      Thank you, I understood.❤‍🔥💞

    • @mumbaikachallenge5526
      @mumbaikachallenge5526 2 года назад +1

      Thanks man!

    • @illumeful
      @illumeful 2 года назад +1

      thanks :)

    • @SandeepKaur-vj3xc
      @SandeepKaur-vj3xc Год назад

      But job3 has maximum profit why it is ignore???and give to time slot j4

    • @garvSensei999
      @garvSensei999 Год назад +1

      ​@@SandeepKaur-vj3xc In problem no:1- J1 has max profit of 20 and time slot is 2 so put J1 in slot [1-2]
      Now after J1; J2 has max profit of 15 and time slot is 2 so the only available slot till 2 is [0-1] because [1-2] slot is already occupied by J1 so J2 will have [0-1]
      Now after J1 & J2; J3 has max profit of 10 but the time slot is 1 i.e. [0-1] which is already occupied by J2 so we ignore J3 because there is no available slot for J3.
      Now after J1, J2, J3; J4 has max profit of 5 and time slot is 3 so we have available slot of [2-3] so J4 will be given slot [2-3].
      That's it, Hope you understood.

  • @archanaverma9089
    @archanaverma9089 4 года назад +10

    Thank you for making DAA this much easy ☺You got my respect sir..

  • @Lucifer-kd1od
    @Lucifer-kd1od 6 лет назад +57

    Best speed for watching your videos is 1.25 sir ji ! Very nice explanation!

  • @TridibSamanta
    @TridibSamanta 5 лет назад +14

    Great ! You are a great Teacher. Thanks for saving my Design and analysis of Algorithm Paper.
    #Respect

  • @sapy4124
    @sapy4124 7 месяцев назад +3

    Oh bhai bhai... i could not understand my college lecture on this topic but this teacher made it really easy to understand..... thanks sir....... i don't know why everyone is having problem of not understanding the college lectures.....

    • @RizZxProd
      @RizZxProd 6 месяцев назад

      bcoz most of the lecturers just care about the money and not about educating the students ! It's the education system's fault in our country. Lecturers be like even if the Student fails they'd say they taught it and Indian parents def won't believe if their kids say that teachers are not teaching properly 🤷

  • @abdulfahad4498
    @abdulfahad4498 4 года назад +8

    i have seen many other videos from other channels, but you are the best professor for this subject. thanks for all the efforts sir from bottom of the heart. may ALLAH bless u with mercies.🤩🤩

  • @urvashisharma7415
    @urvashisharma7415 3 года назад +12

    why does this feel so easy when he teaches

  • @nitishkumarsingh458
    @nitishkumarsingh458 2 года назад +4

    Amazing teaching skill , before watching the videos my thinking is DAA is very tough also teachers says it is very tough but you make daa very easy and easily understood the concept , now time I am watching your java le tures on udemy
    Such a great teacher, thank you sir

  • @berindeiealexandru
    @berindeiealexandru 3 года назад +2

    Best teacher ever!!! Literally all subjects needed for university!

  • @rose-xw1hx
    @rose-xw1hx Год назад +1

    With no single dout u clear the every single topic sir, thank goodness I can learn so fast from you...

  • @yousufahmed164
    @yousufahmed164 4 года назад +3

    sir take my salam from Bangladesh....your teaching style is one of the best style in my life...i just gave up on this topics...Allah helped me. May Allah bless you.

  • @henrytu2249
    @henrytu2249 11 месяцев назад +1

    You're really a good instructor. I can understand the problem and its solution. Thank you so much

  • @rsamhitha4707
    @rsamhitha4707 2 года назад +6

    Your videos are 1000 times effective than sitting hours together in front of the books sir. Thank you very much sir you have made it very easy to understand

  • @27MCN
    @27MCN 2 года назад +2

    Your videos have saved me for Advanced Data Structures! :D

  • @SnehaKashyap6109
    @SnehaKashyap6109 Год назад +3

    This is one of the best playlist for DAA.
    thankk you soo much sir😊

  • @sonofdson
    @sonofdson 2 года назад +2

    Your wisdom is immeasurable Sir.

  • @thrilleracaste400
    @thrilleracaste400 2 года назад +2

    This is one of the best playlist for algorithms. Thank you sir!!

  • @saisujithavaddi9301
    @saisujithavaddi9301 3 года назад +6

    Literally the best channel, seeing each and every concept that we feel difficult,reminds us that we can learn daa subject easily with your channel thanks a lot sir 🙏😊

  • @ashwinivirdikar8176
    @ashwinivirdikar8176 3 года назад +4

    Thank you so much for such good explanation. Really helped me understand the concept.

  • @5b9saipranav.y89
    @5b9saipranav.y89 3 года назад +2

    Thank you, sir. I and my friends understood the problem we were facing for the past 24 hours.

  • @nikhilrajuttla3678
    @nikhilrajuttla3678 4 месяца назад

    you really deserve a best teacher award sir ... very useful lectures ... thanks a lot

  • @deepakojha3216
    @deepakojha3216 4 года назад +19

    student: sir data structure is so tough that I usually feel disappointed while understanding certain concepts
    respected prof abdul bari sir: okay, just hold the camera and tell me ur problem

  • @dan-gu1ty
    @dan-gu1ty 5 лет назад +4

    best explanation on online platform, thank you sososo much ♥

  • @onkarmehetre7393
    @onkarmehetre7393 2 года назад +1

    Toughest topic--> very easy
    Only because of you sir, Thank you...

  • @annet3076
    @annet3076 3 года назад +2

    I ever seen like you sir chanceless how i will explain your way of teaching hats off you sir am preparing for net exam kindly update more videos relevant net exam

  • @sainishithadasari4560
    @sainishithadasari4560 3 года назад +2

    Sir thanks alot, u jst keep things simple and clr

  • @cricwhiz151
    @cricwhiz151 3 года назад +1

    i proudly say i am regular student of sir not only youtube as well as in udemy i bought course of c++,and data structure thank you sir make jsuch a great content on both paltfrom.

  • @MonisKhan
    @MonisKhan 6 лет назад +8

    Great work abdul sir.
    Highly appreciated.
    Your method of explaining problems is superb. 😄

  • @goodlookgamer5010
    @goodlookgamer5010 2 года назад +1

    Thank you sir ..your teaching is very very easy to understand and to the point 🙏

  • @codetolive27
    @codetolive27 6 лет назад +1

    I have started admiring your teaching skills. Thanks for such a good video.

  • @kshitijakulkarni8292
    @kshitijakulkarni8292 5 лет назад +3

    Thank you so much Sir...Every college should have great teacher like you!!

  • @nikhilatiitm
    @nikhilatiitm Год назад +2

    Awesome Explanation Sir

  • @suryapetavidyanneth9095
    @suryapetavidyanneth9095 3 года назад +2

    Your explanation is awsome sir 😍

  • @THATAVARTHISREERAM
    @THATAVARTHISREERAM 3 года назад

    You are really great man.My Daa mam said it in a different way.I didnt understand after doing it so many times.But you rocked it

  • @raghavamorusupalli7557
    @raghavamorusupalli7557 4 года назад +2

    great service in the form of Lucid explanation Sir

  • @akhillochen
    @akhillochen 5 лет назад +13

    Respected sir, you are the GOAT (Greatest of All Time). Thank you!

    • @gabriele2291
      @gabriele2291 4 года назад +6

      lol (laughing over lad), imo (in my opinion) this cmnt (comment) is very n1 (nice one) listen to me ikr (i keep it real) so please GOAT (get outta town) bro (brother)

  • @RahulSingh-up8jo
    @RahulSingh-up8jo 6 лет назад +57

    To make things clear and understand why Greedy approach is used I'll re-define the problem/solution
    Imagine you have N jobs and each jobs takes 1 hour to complete. Each job has certain profit associated with it. Being greedy I'll sort(max-min) the jobs based on profits. I'll start with the job which gives maximum profit and continue to work until the last waiting job (based on availability of the slot) can be completed

    • @surajmahato2557
      @surajmahato2557 6 лет назад +5

      😂😂😂

    • @anshsachdeva1061
      @anshsachdeva1061 5 лет назад +1

      thankyou, even though it has no new info, the way you emphasized on 1 hour made me re-watch that part and helped me understand.

    • @nchsrimannarayanaiyengar8003
      @nchsrimannarayanaiyengar8003 5 лет назад +1

      Dear Rahul singh
      Can you send me the problem and the solution please

    • @vimalsheoran8040
      @vimalsheoran8040 5 лет назад +1

      Thanks, helped me with the notes.

    • @amaleenazhar8253
      @amaleenazhar8253 4 года назад +2

      i still cannot understand how he arrange the job by look at the weight. can you explain it to me please..

  • @SHusen-nw6uo
    @SHusen-nw6uo 5 лет назад +1

    ADA is very tough in CSE but after watching u r lecture it is so easy. Thank you so much. May ALLAH SWT bless u and grant u Jannah. Love from Nepal.❤👉🇳🇵

  • @birhanuworku6850
    @birhanuworku6850 3 года назад

    frankly speaking you are my real teacher.also you are my knowledge father

  • @SRNR_PODCAST.
    @SRNR_PODCAST. 3 года назад +4

    a gold mine in youtube

  • @sachin_yt
    @sachin_yt 2 года назад +2

    You are the best sir! 🙌

  • @Rajveer_kmr
    @Rajveer_kmr Год назад

    your skill of teaching is on next level....

  • @meghareddyreddy5376
    @meghareddyreddy5376 3 года назад

    I have exam tommorrow you made me undestand the concepts u easy.thanku so much sir

  • @varadlele6879
    @varadlele6879 Год назад +1

    for those who r still confused about why did he put j2 in the first slot, only keep this thing in mind, "each and every job takes only 1 unit of time irrespective of the deadline". rest is self explanatory for sure. and also this man is giving away DAA knowledge for absolutely free and at no extra cost that ur understanding. HE IS GOAT. Ma man teaches DAA like its water and u only have to drink it, lmfao.

  • @m.s.s6411
    @m.s.s6411 Год назад

    I have DAA exam tomorrow, Thanks for saving me sir

  • @tejudimple689
    @tejudimple689 5 лет назад

    Noo words sir seriously ur awesome n genious .......helping many people through ur videos thank uu

  • @ashutoshpatel5030
    @ashutoshpatel5030 3 года назад +2

    Nicely and peacefully explained ❤️❤️🙏

  • @mangadoddisuresh9134
    @mangadoddisuresh9134 2 года назад

    You made everything easy. excellent teaching sir

  • @ivandrofly
    @ivandrofly 6 месяцев назад

    Thank you, I was having issue understanding the meaning/representation of a deadline.
    For those having the same issue, it means for example if Job X has a deadline 3, it means it can be done in 1 or 2 or 3 and it cannot pass 3
    e.g: 0__1__2__3
    if we try to place it at the 3__4 position it will pass the deadline assume that the job as a length duration of 1 unit

  • @canernm
    @canernm 4 года назад +7

    Thanks for the videos! Can you please explain to me why, after placing J1 and J2 in the first 2 slots, we cant pick J3 which is the 3rd biggest profit and interchange it with J1? If we pick J3 and do it first instead of J1, during the slots [9-10], we can get bigger profit, 20+15+10. Please answer, thanks a lot in advance!

    • @emprost-kun2388
      @emprost-kun2388 3 года назад +3

      Because as per greedy approach you have to choose maximum profit first then go to the lower ones, and that's how the order goes J1 has the biggest profit so we'll prefer it first, same for all as well.

  • @mudassirshaikh222
    @mudassirshaikh222 5 лет назад +1

    Thank you very much sir... really very nice explanation... 👌👌👌👌

  • @vinitborade6445
    @vinitborade6445 6 лет назад

    I'm so impressed by your teaching. I mean I'm trying to understand these concepts from last few days but you made it easier to understand and I'm very thankful.

  • @justifybornshadap9411
    @justifybornshadap9411 4 года назад

    Thank you... I've watch some of your tutorials & I find it very very very very helpful & interesting to watch

  • @michaelkrishna5105
    @michaelkrishna5105 4 года назад +1

    Thank you sir..
    very GOOD explanation and i hope you continue with more videos

  • @priyankagehlot9945
    @priyankagehlot9945 6 месяцев назад

    your lectures = peace 😊

  • @ajayvanam7476
    @ajayvanam7476 5 лет назад +2

    Thank u So much Abdul Sir Really i felt easy after seeing this video i learnt in 10 mins thank u sir

  • @abhinandvalasseri1294
    @abhinandvalasseri1294 6 лет назад +2

    its the best explanation i found from entire youtube.
    Thank you sir.
    i like to make a suggestion that. you can add the algorithm and its complexity analysis in a separate video. it will be help full for students to get the fullest of this algorithm

  • @ROHITSHARMA-xf7nf
    @ROHITSHARMA-xf7nf 3 года назад +8

    A lttle insight from my side for those who are confused about 20+15+10 profit :
    - Don't confuse the deadlines with the time (1 unit ) that the worker takes to complete the job.
    - The deadlines for every job start the moment the worker opens his/her shop.
    - This is the reason why ABDUL SIR ignored the j3 job because it can only be done in 9-10 slot.

  • @INDIANSinghX
    @INDIANSinghX 4 года назад

    U made it look so reliable to understand .u r great

  • @devakumarkatta4010
    @devakumarkatta4010 3 года назад +3

    Happy teacher's day sir tomorrow is my end semester

  • @HimanshuSharma-sp7qq
    @HimanshuSharma-sp7qq 9 месяцев назад +1

    Jai hoo..... Sb samjh aa gya sir...❤

  • @jaswanthm9775
    @jaswanthm9775 5 лет назад +12

    Sir, please make videos on all CSE core subjects

  • @jannamariyamk.c7745
    @jannamariyamk.c7745 2 года назад

    Your class is verry much effective.. Thank u sir😍😊

  • @red5hat
    @red5hat 5 месяцев назад

    You missed one thing- profits is to be sorted first. Best video on the topic. Thank you sir.

    • @m.y.7230
      @m.y.7230 5 месяцев назад

      Indeed I'd write the same

  • @ForYou-lw9df
    @ForYou-lw9df 2 года назад

    Sir you are explaining ours mindset side sir you are teaching very easily sir greatest

  • @kaifmalek3608
    @kaifmalek3608 Год назад +1

    thanks for making this video sir😊. it is very helpful😊

  • @naziyafirdoussayyed8491
    @naziyafirdoussayyed8491 5 лет назад +4

    Thank you so much sir 😇 this tutorial is very helpful....
    That satraj sahni's book😑 I can not even understand a word from this book😁🙃
    But thank you sir 😇
    Love and respect from India 🇮🇳

  • @THEWONDERBOY-gv2cf
    @THEWONDERBOY-gv2cf 5 месяцев назад

    Really DAA became easy by listening to ur lectures...

  • @varalakshmibondili1053
    @varalakshmibondili1053 10 месяцев назад

    Amazing teaching skills..

  • @pinnintisuvarna7896
    @pinnintisuvarna7896 2 года назад +1

    Tq very much I understand very much I help to my exam

  • @HeroesOfAesthetics
    @HeroesOfAesthetics 3 года назад +1

    amazing explanation

  • @nirajgusain1452
    @nirajgusain1452 5 лет назад +2

    Sir, you are best teacher❤️

  • @muhammadabrar4233
    @muhammadabrar4233 2 года назад

    Sir, your making algorithm look easy.

  • @ramanrai7429
    @ramanrai7429 6 лет назад

    I salute u sir the tone of ur voice let me understand the topic easily 😚😎😎😎😎😎

  • @oozinginnocence2386
    @oozinginnocence2386 6 лет назад +2

    Thank you sir for all the lectures.... you are the best

  • @meghaverma2833
    @meghaverma2833 6 лет назад +1

    Thank you sir for explaining in such a simple and effective manner

  • @naveenmarikar4829
    @naveenmarikar4829 6 лет назад +2

    Very nicely explained sir.

  • @5i5williamkeerthananbkrist67
    @5i5williamkeerthananbkrist67 3 года назад

    ☺️☺️☺️ Thank u sir I understood the problem within 10 min video..

  • @praisesupastar
    @praisesupastar 6 лет назад +8

    Thank you sir. Pls can you include an algorithm design for your solution? Thank you

  • @IrfanShaikh-nb1ud
    @IrfanShaikh-nb1ud 6 лет назад +1

    Thanks for the simple explanation sir.... Was Helpful for my internals😁

    • @IrfanShaikh-nb1ud
      @IrfanShaikh-nb1ud 6 лет назад

      Abdul Bari vtu University sir.... BYRE GOWDA INSTITUTE OF TECHNOLOGY

  • @derickcelias
    @derickcelias 4 месяца назад

    Great explanation, Thank you sir.

  • @negasatsegaye3094
    @negasatsegaye3094 3 года назад +2

    Jezakallah - thank yo so much for the amazing excellent lectures

  • @crazytech3550
    @crazytech3550 3 года назад +1

    Nice explanation 🙌

  • @v.revanthnaidu4386
    @v.revanthnaidu4386 6 лет назад

    thank you so much sir .your way of teaching is fantabulous.

  • @akashjaiswal6478
    @akashjaiswal6478 3 года назад

    you are a great teacher sir, that to you understanding all these concepts are really easy, I have also taken you course on udemy that was a really amazing course.

  • @shrutichoudhary211
    @shrutichoudhary211 2 года назад +1

    my own ADA teacher teaches from your videos and shares it with us to watch for better understanding lol

  • @Hello-ig1dp
    @Hello-ig1dp 2 года назад

    Thank you sir for helping so clearly

  • @shivakumar.s.a6333
    @shivakumar.s.a6333 4 года назад

    Tq sir ur teaching helps us a lotzzz ,the way u teach us is really perfect

  • @stith_pragya
    @stith_pragya 11 месяцев назад

    Thank You So Much for this wonderful video..........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

  • @aishwaryakasthala97
    @aishwaryakasthala97 6 лет назад +2

    Thank you sir for the easy explaination!!

  • @RahulGupta-hj9bn
    @RahulGupta-hj9bn 4 года назад

    Best Sir . Thanks for giving useful Concept.