{"id":180,"date":"2012-06-25T06:39:20","date_gmt":"2012-06-25T10:39:20","guid":{"rendered":"http:\/\/learninglover.com\/blog\/?p=180"},"modified":"2013-05-08T07:55:39","modified_gmt":"2013-05-08T11:55:39","slug":"linear-search-algorithm","status":"publish","type":"post","link":"https:\/\/learninglover.com\/blog\/index.php\/2012\/06\/25\/linear-search-algorithm\/","title":{"rendered":"Linear Search Algorithm"},"content":{"rendered":"<p>I have published <a href=\"http:\/\/www.learninglover.com\/examples.php?id=20\">code that shows examples of the Linear Search Algorithm<\/a>.<\/p>\n<p>The linear search algorithm iterates through each item in our data structure in search for a specific value. If the current item matches, we can return, else we must continue to the next item. <\/p>\n<p>In the worse case, this requires that we search through all items because in a unsorted structure, we cannot say whether an untesetd value is the value we are searching for.<\/p>\n<p>Other Blogs that have covered this topic:<br \/>\n<a href=\"http:\/\/www.dreamincode.net\/forums\/topic\/318057-algorithm-search-linear-search\/\" title=\"Dream.In.Code\">Dream.In.Code<\/a><br \/>\n<a href=\"http:\/\/codingbot.blogspot.com\/2013\/03\/linear-search-in-array-c-code.html\" title=\"Coding Bot\">Coding Bot<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have published code that shows examples of the Linear Search Algorithm. The linear search algorithm iterates through each item in our data structure in search for a specific value. If the current item matches, we can return, else we must continue to the next item. In the worse case, this requires that we search [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-180","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=180"}],"version-history":[{"count":0,"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/180\/revisions"}],"wp:attachment":[{"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learninglover.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}