• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
What is the pre-processing time of Rabin and Karp Algorithm?
رابن اور کارپ الگورتھم کا پری پروسیسنگ کا وقت کیا ہے؟
  1. Theta(m2)
  2. Theta(mlogn)
  3. Theta(m)
  4. Big-Oh(n)
Explanation
  • The pre-processing time of Rabin and Karp Algorithm is Theta(m).
  • The for loop in the pre-processing algorithm runs for m (the length of the pattern) times, hence the pre-processing time is Theta(m).
  • This is the time complexity of the pre-processing phase of the Karp-Rabin algorithm.

Related MCQs

ورلڈ وائیڈ ویب کو رابرٹ کیلِیو کے ساتھ کس نے ایجاد کیا؟
  1. Tom Burne
  2. Tim Burner Lee
  3. Fred Zuckerberg
  4. Both a and b
اس سوال کو وضاحت کے ساتھ پڑھیں

مواصلاتی چینل کیوں بنایا جاتا ہے؟
  1. To increase confusion
  2. To facilitate transmission of information
  3. To stop communication
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

کمپیوٹنگ میں بِٹ کس چیز کا مخفف ہے؟
  1. Binary digit
  2. Base digit
  3. Basic digit
  4. Byte digit
اس سوال کو وضاحت کے ساتھ پڑھیں

کون سا پروٹوکول عام طور پر ای میلز بھیجنے کے لیے استعمال ہوتا ہے؟
  1. FTP
  2. SMTP
  3. HTTP
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

کالم اور قطار کے ملنے کی جگہ کو کیا کہتے ہیں؟
  1. Schema
  2. Cell
  3. Table
  4. Data
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com