Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

SIKSHAPATH

SIKSHAPATH Logo SIKSHAPATH Logo

SIKSHAPATH Navigation

  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
  • About
    1. Asked: October 17, 2022In: Data Science

      Solve using fractional knapsack: M=20, n=4 P= (3, 10, 15, …

      Saurav kumar
      Saurav kumar
      Added an answer on October 17, 2022 at 6:23 pm

      M=20 (total capacity of bag) N=4 (no of items) Let’s find Pi/Wi (profit/weight) for each items: P1/W1=3/5 = 0.60 (O1) P2/W2=10/13= 0.76(O2) P3/W3= 15/12 = 1.25 (O3) P4/W4 = 5/8 = 0.62 (O4) Where O is object no   Let’s arrange them in order: 1.25 >> 0.76 >> 0.62 >> 0.60   Object takRead more

      M=20 (total capacity of bag)

      N=4 (no of items)

      Let’s find Pi/Wi (profit/weight) for each items:

      P1/W1=3/5 = 0.60 (O1)

      P2/W2=10/13= 0.76(O2)

      P3/W3= 15/12 = 1.25 (O3)

      P4/W4 = 5/8 = 0.62 (O4)

      Where O is object no

       

      Let’s arrange them in order: 1.25 >> 0.76 >> 0.62 >> 0.60

       

      Object taken

      profit

      weight

      Remaining weight

      O3

      15

      12

      8

      O2

      10

      13

      0

      O4

      5

      8

      0

      O1

      3

      5

      0

       

      Now,

      • Knapsack weight left to be filled is 8 kg but item-2 has a weight of 13 kg.
      • Since in fractional knapsack problem, even the fraction of any item can be taken.
      • So, knapsack will contain the following items-

      < O3,(8/13)O2 >

       

      See less
        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    2. Asked: October 3, 2022In: Computer Science

      Write down the steps to test ACUNETIX website for SQL …

      Saurav kumar
      Saurav kumar
      Added an answer on October 4, 2022 at 10:13 pm

      For Answer Download below given attachment:

      For Answer Download below given attachment:

      See less
      Attachment

        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    3. Asked: April 8, 2022In: Mathematics

      Intelligent test were given to two groups of boys and girls with mean , Standard deviation and Size 75,8,60 for …

      Saurav kumar
      Saurav kumar
      Added an answer on April 8, 2022 at 11:26 am

      Just Click On below Link to Download Docx File.

      Just Click On below Link to Download Docx File.

      See less
      Attachment

        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    4. Asked: March 31, 2022In: Microprocessor

      The 8255 operates in 2 modes,Answer the following wrt 8255 modes Which bit of control word register is responsible for …

      Saurav kumar
      Saurav kumar
      Added an answer on April 2, 2022 at 9:38 pm
      This answer was edited.

      1.D7 bit of control word register is responsible for mode selection. 2.D5, D6 are used for mode selection for group A .The format is as follow: D6 D5 Mode 0 0 0 0 1 1 1 x 2 3.Value of CWR for setting PC3 is 07H. 4. D3=1,D2=0,D1=0 to select PC4. 5 . D3=0,D2=1,D1=0 to select PC2.

      1.D7 bit of control word register is responsible for mode selection.

      2.D5, D6 are used for mode selection for group A .The format is as follow:

      D6 D5 Mode
      0 0 0
      0 1 1
      1 x 2

      3.Value of CWR for setting PC3 is 07H.

      4. D3=1,D2=0,D1=0 to select PC4.

      5 . D3=0,D2=1,D1=0 to select PC2.

      See less
        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    5. Asked: March 27, 2022In: Software Engineering

      Q1. Design a use case diagram for airport check-in and security screening. Summary: Business use cases are Individual Check-In, Group …

      Saurav kumar
      Saurav kumar
      Added an answer on March 31, 2022 at 9:46 pm

      question 1:  

      question 1:

       

      See less
        • -1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    6. Asked: February 22, 2022In: Data Structure

      QUESTION 1. What are the various applications of a stack data structure? QUESTION 2. When do you get error message …

      Saurav kumar
      Best Answer
      Saurav kumar
      Added an answer on February 22, 2022 at 10:30 am
      This answer was edited.

      ANSWER 1: the various Applications of Stack in Data Structure: Evaluation of Arithmetic Expressions Backtracking Delimiter Checking Reverse a Data Processing Function Calls answer 2:  A queue may have a limited space depending on the implementation. We must implement check conditions to see if we arRead more

      ANSWER 1:

      the various Applications of Stack in Data Structure:

      • Evaluation of Arithmetic Expressions
      • Backtracking
      • Delimiter Checking
      • Reverse a Data
      • Processing Function Calls

      answer 2: 

      A queue may have a limited space depending on the implementation. We must implement check conditions to see if we are not adding or deleting elements more than it can maximum support.

      The underflow condition checks if there exists any item before popping from the queue. An empty one cannot be dequeued further.

      if(front == rear)
      // underflow condition

      The overflow condition checks if the queue is full (or more memory is available) before enqueueing any element. This prevents any error if more space cannot be allocated for the next item.

      if(rear == SIZE-1)
      // overflow condition

      See less
        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    1 2

    Sidebar

    store ads

    Stats

    • Questions 1k
    • Answers 1k
    • Posts 141
    • Best Answers 89
    • Cloud Computing Notes 101: Learn Fundamentals, Service Models, and Virtualization!
    • This Free AI Tool Translates Entire Books in Minute !
    • 25 Essential Software Testing Questions: Flashcard Edition!
    • 27 C++ Questions & Answers – Quiz 1 Flashcards
    • Interactive Alphabet Flashcards for Kids: A to Z Learning Fun!

    Explore

    • Recent Questions
    • Questions For You
    • Answers With Time
    • Most Visited
    • New Questions
    • Recent Questions With Time

    Footer

    SIKSHAPATH

    Helpful Links

    • Contact
    • Disclaimer
    • Privacy Policy Notice
    • TERMS OF USE
    • FAQs
    • Refund/Cancellation Policy
    • Delivery Policy for Sikshapath

    Follow Us

    © 2021-24 Sikshapath. All Rights Reserved