C++ Programming: Linear Search Algorithm

preview_player
Показать описание
Concepts:
Linear Search Algorithm
Pros/Cons of Linear Search
Linear Search is good for small lists/arrays
Linear Search does not impose any preconditions
Рекомендации по теме
Комментарии
Автор

finally, a voice over that's not Indian

mostafamohamed
Автор

Wow, your teaching style is a piece of cake.
Thanks for watching from Ethiopia.

yasina
Автор

Thanks so much! This helped me understand linear search more clearly via code. Currently learning data structures & algorithms for potential jobs. C++ is my go-to language; it really helps me think.

victoriadathan
Автор

You do a very well job brother of explaining the concept, keep it up!!!

varinderbrar
Автор

i'll spend all day trying to figure this stuff out in my book. I look watched this and no confusion got it instantly. Thank you

smokestrong
Автор

Great tutorials ! Thank you so much for aharing the knowledge and great manner of actually "teaching" the subject matter.

balfaboy
Автор

Very helpful! Thank you. One thought. In determining if the number was found or not, you used if (results > 0). This would only work if the array was unsigned int. If the array consisted of negative numbers, it wouldn't work. so wouldn't it be necessary to declare the array appropriate? I guess in the case, you can check if the result !==-1, return "Number was found."

alexandre
Автор

Hi X,
Seek out big-O notation...I believe the function 0(N) will get you going in the right direction...the algorithm grows linearly in direct proportion to the size of the data set. You can take a multiple of your set size, say 10, and test the speed of that, then figure the multiple of and the big-O funtction definitions should help you determine the actual speed.

balfaboy
Автор

H, i how could you construct a program to perform a linear search for a string within another string not using the find function. all of the examples use int which is fairly easy.

terryalleyne
Автор

thank you very much
the way you explain things is simple and very helpful

AhmedAlbadwi
Автор

What if you didn’t know what was gonna be in the array, how you initialize it

Handleme
Автор

Great video, clarity in explanation and design, , , ,

carlalendor
Автор

You shouldn't have to pass in the size of the array as an input parameter, , you can calculate that in the function.

ronaldismyname
Автор

Clear, Precise and perfect ;)
Will watch your other videos as well <3

haxorez
Автор

You're very clear with what you're saying and doing :D Thankyou!

wongyuenzeng
Автор

Thank you very much The same program was written in a complex manner in my textbook but you have made it
pretty easier for me

_unknown_
Автор

Thanks your explaination simple and easy ❤

soma_
Автор

Easy to follow and neatly presented. Thanks!

worldonawrist
Автор

I must thank you for the great explanation you did in this video. Thank you so much.

saramillett
Автор

thank you very much, this coding really helped me a lot through out my assignment.with clear explanation. keep it up

ilifahmeeda