From today's featured articleA binary search algorithm is a method to determine the position of a target value within a sorted array (an ordered list). Binary search compares the target value to the middle element of the array. If they are not equal, the half in which the target cannot lie is eliminated and the search continues on the remaining half, again taking the middle element to compare to the target value, and so on. If the remaining half at any stage is found to be empty, then the target is not in the array. Even though the idea is simple, implementing binary search correctly requires attention to some subtleties about its exit conditions and midpoint calculation. Binary search runs in logarithmic time in the worst case. It is faster than linear search except for small arrays, but the array must be sorted first. Although specialized data structures designed for fast searching, such as hash tables, can be searched more efficiently, binary search applies to a wider range of problems. (Full article...)
Recently featured:
Did you know...
|
In the news
On this day
Marie of Romania (b. 1875) · Diana Serra Cary (b. 1918) · Carlos Guastavino (d. 2000)
More anniversaries:
|
From today's featured list
The discography of Swedish singer and songwriter Tove Lo includes three studio albums, one extended play (EP), and twenty-two singles (including nine as a featured artist). Lo started her career as the lead singer and songwriter in math rock band Tremblebee from 2006 until 2009. In 2013, she self-released "Habits", which received positive feedback from music blogs and led her to sign a record deal with Universal Music Group. Her first EP, Truth Serum, was released the following year. A remixed version of "Habits", re-titled as "Stay High", peaked at number 13 in Sweden and reached the top ten of the charts in Australia, New Zealand, and the United Kingdom. Lo's debut album, Queen of the Clouds, was released that same year, peaking at number six in Sweden and number 14 on the US Billboard 200. "Habits" was re-issued as "Habits (Stay High)" and released as the lead single from the record, peaking at number three on the Billboard Hot 100. In 2016, the singer released her second studio album, Lady Wood, which topped the albums chart in Sweden and peaked at number 11 on the US Billboard 200. The next year, Lo released her third studio album, Blue Lips, which peaked at number 15 in Sweden. (Full list...)
Today's featured picture
Yacine Brahimi (pictured in green on right) is a French-born Algerian professional footballer who plays for FC Porto and the Algeria national team. Born in Paris to Algerian parents and raised in Montreuil, Brahimi was selected to attend the Clairefontaine academy in 2003. Despite being courted by several French and European clubs, following his stint at Clairefontaine, he signed a youth contract with Rennes. After turning professional, Brahimi was loaned out to second division club Clermont Foot. While at Clermont, he had a successful individual 2009–10 season. After spending the previous season there on loan, he moved to the La Liga club Granada CF in 2013, and then to Porto for €6.5 million one year later. Having played for France at youth and under-21 level, Brahimi switched his allegiance to Algeria in 2013. He went on to represent them at the 2014 FIFA World Cup and 2015 African Cup of Nations. Brahimi is shown here playing for Algeria in a May 2014 friendly, attacking against Taron Voskanyan of Armenia. Photograph: Clément Bucco-Lechat
Recently featured:
|
Other areas of Wikipedia
- Community portal – Bulletin board, projects, resources and activities covering a wide range of Wikipedia areas.
- Help desk – Ask questions about using Wikipedia.
- Local embassy – For Wikipedia-related communication in languages other than English.
- Reference desk – Serving as virtual librarians, Wikipedia volunteers tackle your questions on a wide range of subjects.
- Site news – Announcements, updates, articles and press releases on Wikipedia and the Wikimedia Foundation.
- Village pump – For discussions about Wikipedia itself, including areas for technical issues and policies.
Wikipedia's sister projects
Wikipedia is hosted by the Wikimedia Foundation, a non-profit organization that also hosts a range of other projects:
Free media repository
Wiki software development
Wikimedia project coordination
Free textbooks and manuals
Free knowledge base
Free-content news
Collection of quotations
Free-content library
Directory of species
Free learning materials and activities
Free travel guide
Dictionary and thesaurus