ToMotion AI logo
Menu
Back to gallery

Public AI explainer video

Binary Search: Narrow the Range

How can one guess replace checking every number? In higher-or-lower, each answer narrows the range. Binary Search works on sorted data-numbers already...

Prompt

Source idea used to generate this video.

Create a 30-second, 16:9 horizontal HD cinematic educational video for YouTube explaining **Binary Search** using the provided reference image. **STRICT IMAGE PRESERVATION:** Keep the supplied Binary Search infographic exactly as it is. Do not change, redraw, crop, replace, or distort any part of the image. Preserve all headings, diagrams, arrays, tables, Python code, colors, icons, and text exactly as shown. Display the infographic clearly and legibly throughout the video. **VIDEO STYLE:** Educational classroom-style explanation with a clear, confident Indian male voice. Use a steady long shot showing the complete infographic as the main visual. Add only subtle cinematic camera movement, if needed, without cutting off any content. Use a natural speaking speed, clear Hindi pronunciation, and accurate synchronization between narration and visual emphasis. **30-SECOND HINDI SCRIPT:** **0–5 seconds | Introduction** Voiceover: “आज हम समझेंगे Binary Search, एक तेज़ searching algorithm, जो केवल sorted data पर काम करता है।” Visual: Show the complete infographic. Gently emphasize the heading “BINARY SEARCH” and the sorted array. **5–11 seconds | Working Principle** Voiceover: “यह हर बार बीच वाले element को check करता है। अगर key बड़ी हो, तो right half में search करते हैं, और छोटी हो, तो left half में।” Visual: Highlight the middle element and the left and right halves in the existing examples. Do not alter the original image. **11–19 seconds | Example: Search 60** Voiceover: “उदाहरण में, 60 को search करना है। पहले middle element 40 मिलता है। क्योंकि 60 बड़ा है, हम right half में जाते हैं। फिर 60 मिलता है, index 5 पर!” Visual: Follow the infographic’s existing steps: first mid index 3 with value 40, then mid index 5 with value 60. Emphasize each step using a subtle spotlight or pointer overlay without modifying the infographic itself. **19–25 seconds | Python and Complexity** Voiceover: “Python में इसे loop और mid calculation से implement कर सकते हैं। इसकी average time complexity O of log n है।” Visual: Gently emphasize the Python program and complexity analysis sections. **25–30 seconds | Conclusion** Voiceover: “याद रखें, Binary Search से पहले data sorted होना चाहिए। Search smart, learn smart!” Visual: Return attention to the full infographic and finish with a clear view of the Binary Search summary. **BACKGROUND MUSIC:** Add soft, modern, upbeat, trending-style instrumental music suitable for educational YouTube videos. Keep the music low beneath the narration so every word remains clearly audible. Use platform-authorized music. **TECHNICAL REQUIREMENTS:** 16:9 horizontal, HD quality, 30 seconds total, smooth transitions, readable infographic, professional educational presentation, clear male voice, normal speaking speed, and balanced audio. **STRICT NEGATIVE INSTRUCTIONS:** Do not modify the original infographic or its contents. Do not generate a different poster, alter code or numerical values, add unnecessary text, use rapid cuts, obscure important details, or place subtitles over the infographic. Keep the explanation accurate, concise, and faithful to the supplied image.

Narration

Narration used to create this video.

Video narration

How can one guess replace checking every number? In higher-or-lower, each answer narrows the range. Binary Search works on sorted data-numbers already in order. The middle isn't just a guess: it tells you which half to ignore. Find 60: compare it with 40 at index 3. Since 60 is higher, keep the right half; next, 60 is at index 5. Repeating this halving takes O(log n) checks. Like higher-or-lower, keep the half that can still hold your answer.