Dubious Insights
Dubious Insights
  • Видео 37
  • Просмотров 215 534
10x Faster Than Chat GPT !!
I asked Chat GPT how long it would take me to make a flappy bird clone in Unity. It told me that it would take 40 hours. I challenged myself to do it in less than 4 hours.
Valem's tutorial ruclips.net/video/uRWmEjxY334/видео.html
Link to the Image file I used www.spriters-resource.com/mobile/flappybird/sheet/59894/
My experience is that Chat GPT is really useful for pure code problems. It's not as useful to learn how to use GUIs, as it tends to make things up. For that type of thing, RUclips is still better. In this case, I did use Chat GPT to do most of the coding for me, so it was still a big help.
Просмотров: 6 476

Видео

ChatGPT Got This Video 304 Views
Просмотров 319Год назад
I used chat gpt 4 to write a python program that would automatically update the title of this video to match the view count.
Using Chat GPT To Make The Snake Game FAST!
Просмотров 1,1 тыс.Год назад
I use chat gpt 4 to make the snake game in around 8 minutes. I'm not entirely sure what I learned in the process, other than that this tool is really powerful
Where e Hides - Secretary Problem
Просмотров 3,2 тыс.2 года назад
In optimal stopping problems, marriage problem, Googol game, or the secretary problem, the best strategy is to interview 36.8% of the candidates, and then to take the next candidate that is better than any of the previous ones. 36.8 % is 1/e But why does e show up in the problem at all ? I was a little bit hand wavey about how we get the integral for our percentage. This wikipedia page has a pr...
What is e ???
Просмотров 4,4 тыс.2 года назад
e isn't just a number. (nor is it just a letter) It has a real physical meaning. We can think of it as a unit of continuous growth, and use it to scale all other growth. Credit for images John Napier en.wikipedia.org/wiki/File:John_Napier.jpg Jacob Bernoulli en.wikipedia.org/wiki/File:Jakob_Bernoulli.jpg Leonhard Euler en.wikipedia.org/wiki/File:Leonhard_Euler_-_edit1.jpg bank pixabay.com/illus...
World's Fastest Square Root: Newton's Method
Просмотров 82 тыс.2 года назад
Newton's method, from 1670, is a crazy fast way of generating square roots. The number of accurate digits in the square root doubles every single step. It is derived by taking the Newton Raphson equation en.wikipedia.org/wiki/Newton's_method and plugging in the equation for a square as the function x^2 = a Images I used newton pixabay.com/vectors/isaac-newton-portrait-vintage-3936704 telescope ...
The RSA Encryption Algorithm
Просмотров 1,2 тыс.2 года назад
The RSA Encryption algorithm uses a public key and a private key to encrypt and decrypt information without having to agree on a key before hand. The strength of this algorithm is built around the fact that factoring large numbers is mathematically difficult. i.e. it is easy to tell that 13 * 31 = 403, but it is more difficult to figure what the prime factors of 493 are For more, and probably b...
War Odds If You Hold All The Aces
Просмотров 3233 года назад
A quick and fun simulations of who would win at war if you get all the aces, or if you start with only aces. Here's the spreadsheet from the video docs.google.com/spreadsheets/d/1C4etMcwJ0WptZAtKniBtPRr2d950C4yx_FH2FyiSrZs/edit?usp=sharing All code # Copyright 2021 Google LLC # SPDX-License-Identifier: Apache-2.0 # www.apache.org/licenses/LICENSE-2.0 code from the video pastebin.com/fFR2Frcs Th...
War: The Infinite Card Game
Просмотров 1613 года назад
Just how long can a game of war last ? If you're like me, you probably played as a kid, but almost never finished one. Fortunately, my computer doesn't get bored playing war over and over, so I wrote a python program to find out. pastebin.com/kYs2WmhK Its answer: The only way to win is to get all the aces.
Risk Board Game, World Domination Odds
Просмотров 2,4 тыс.3 года назад
Who has the advantage in a game of risk? The attacker or the defender ? The attacker gets an extra die, but the defender wins ties. As it turns out, this is slightly better for the attacker, in the common 3 attacker vs 2 defender scenario. But in most of the other scenarios, the defender has the advantage. Basically, if you're the attacker and you can't attack 3v2, 3v1, or 2v1 you will be at a ...
Heapsort, Quicksort, and Mergesort Race
Просмотров 1,6 тыс.3 года назад
Quicksort, heapsort, and mergesort are 3 N lg(n) sorts, which makes them 3 of the fastest sorts, asymptotically. All sorts get slower as you add more points, but N lg(n) sorts do not get slower as quickly as N^2 sorts, which is why you see N lg(n) sorts as the commonly used ones.
Merge Sort vs. Quick Sort
Просмотров 3,9 тыс.3 года назад
Merge sort algorithm racing against quick sort algorithm to sort 240 points. The points were randomly shuffled using the Fisher-Yates algorithm. The radii of the points go from 10 to 250 pixels out from the center, and the theta angle in degrees is set as their index in the sorted list * 1.5 This results in a 360 degree spiral, when the points are sorted. Both of these are divide and conquer al...
Quick Sort a Spiral in 25 Seconds
Просмотров 723 года назад
Quick sort has been applied to a group of points that should form a spiral, but are instead randomly positioned. The points are green when they are in the correct spot, red when they are being moved, and grey otherwise. There are 240 points with radii between 20 and 260 pixels out from the center. They are set so that their theta angle is their position in the list * 1.5. Therefore the first po...
Three Body Problem In Python - Earth's Orbit
Просмотров 1,6 тыс.3 года назад
The three body problem coded in python. This shows the Earth's orbit around the sun using 3 body calculations, i.e. summing all forces with F = G * m1 * m2 / r^2 Then generating the accelerations, velocities, and locations. This process would work in theory with any number of objects in space. In practice, this is an O(N^2) calculation so it would probably run into compute issues if you got mor...
Programming A Pendulum In Python
Просмотров 8 тыс.3 года назад
Programming A Pendulum In Python
Pendula Produce Particularly Peculiar Patterns
Просмотров 1533 года назад
Pendula Produce Particularly Peculiar Patterns
The Dance Of The Pendulums
Просмотров 2453 года назад
The Dance Of The Pendulums
How Archimedes Trapped Pi
Просмотров 71 тыс.3 года назад
How Archimedes Trapped Pi
Particle Life Planets & Rockets
Просмотров 6 тыс.3 года назад
Particle Life Planets & Rockets
Ants Search For Food Simulation
Просмотров 1693 года назад
Ants Search For Food Simulation
Ants Wander & Seek Behavior
Просмотров 733 года назад
Ants Wander & Seek Behavior
AI Overfitting Results In Terrible Driving
Просмотров 1103 года назад
AI Overfitting Results In Terrible Driving
AI Learns To Drive
Просмотров 1013 года назад
AI Learns To Drive
AI Learns To Park In 1500 Generations
Просмотров 1923 года назад
AI Learns To Park In 1500 Generations
AI Tries To Learn How To Park
Просмотров 1693 года назад
AI Tries To Learn How To Park
AI Learns To Park.... But Not Well
Просмотров 1473 года назад
AI Learns To Park.... But Not Well
Adding Radar & Collisions To My AI Driving Game
Просмотров 4403 года назад
Adding Radar & Collisions To My AI Driving Game
Simple Driving Game Physics - How To Steer A Car Accurately
Просмотров 4,6 тыс.3 года назад
Simple Driving Game Physics - How To Steer A Car Accurately
1 Neuron Neural Net Beats Game!
Просмотров 8 тыс.3 года назад
1 Neuron Neural Net Beats Game!
A.I. vs. A.I. Race : More Kids vs. More Mutations
Просмотров 5073 года назад
A.I. vs. A.I. Race : More Kids vs. More Mutations

Комментарии

  • @Nockoutz1
    @Nockoutz1 День назад

    Amazing explanation , thank you!

  • @donwald3436
    @donwald3436 7 дней назад

    Wait weren't square roots heresy in ancient greece ?

  • @donwald3436
    @donwald3436 7 дней назад

    This is the Husband Store joke lol.

  • @oys0801
    @oys0801 29 дней назад

    I think there is no "print" in the full code, so when I run full code it doesn't work. how can I run this code?

  • @AntoineVanGeyseghem
    @AntoineVanGeyseghem 2 месяца назад

    FR: Je ne connaissais pas cette technique. :O EN: I didn't know this method. :O

  • @JeanMarieGalliot
    @JeanMarieGalliot 2 месяца назад

    It is interesting to notice that you obtain the same result in the same number of iterations with a slightly simple formula: Xn+1 = (Xn + value/Xn) / 2 Same result with less machine cycles

  • @clemensvorbauer1183
    @clemensvorbauer1183 3 месяца назад

    nice video, thank you for trying to do it historically correct!

  • @user-lo9wx9mo4z
    @user-lo9wx9mo4z 3 месяца назад

    I love how merge sort and heap sort sound better in theory (because quicksort has a worst case of O(n^2) while the others are always O(nlogn)) but in most applications not only they work at the same order but also quicksort gains by constants.

  • @dannyobrien8298
    @dannyobrien8298 4 месяца назад

    Excellent video, just used it in my class :))

  • @MathWithoutBorders
    @MathWithoutBorders 4 месяца назад

    I don't think Archimedes had access to trigonometry. You don't really show how you got your formula for going from 6 to 12 to 24 ... sides. I think this is a key step for understanding. Could you show where this came from? I do it a different way in my Archimedes pi video, but I would like to understand your method. (See ruclips.net/video/_rJdkhlWZVQ/видео.html for comparison.) Nice graphics. From other comments it sounds like you used a piece of software called Manim. Is that correct? I'll have to look it up.

  • @dcterr1
    @dcterr1 5 месяцев назад

    Nice history lesson and excellent explanation of Archimedes' method for estimating the value of pi.

  • @imapina5997
    @imapina5997 5 месяцев назад

    thank you

  • @Lisa-t1n7l
    @Lisa-t1n7l 6 месяцев назад

    You need to talk much faster. When you sound like a mosquito, you will have achieved success.

  • @justlearning-ph6if
    @justlearning-ph6if 6 месяцев назад

    damn that's so simple and beautiful newton is the true og

  • @howled0
    @howled0 7 месяцев назад

    love me some quality content

  • @Martin_Z555
    @Martin_Z555 7 месяцев назад

    how can you have 99.99% accuracy of a number that goes on forever? you cant even reach 1% accuracy of such a number.

  • @ed2023bc
    @ed2023bc 7 месяцев назад

    Vey nice explanation. Loved the graphics. Thank you

  • @lorenwilson8128
    @lorenwilson8128 8 месяцев назад

    Halley's method is Newton's method but uses the second derivative as well as the first and gives third order convergence instead of second.

  • @zf2645
    @zf2645 8 месяцев назад

    You “ ran the simulation until either of the attacker or defender was completely wiped out”. The attacker can’t be completely wiped out, I assume you mean the attacker has one army left? And why would you run the sim with the presumption that an attacker with 1 die would attack a defender with 2 die or perhaps even 1 die? Cause you’d never make that attack in risk. It would be more informative to run your sim with the assumption that the attacker only attacks when it’s in his favour, which is anytime the attacker rolls more dice than the defender.

    • @JeffreyMarciano
      @JeffreyMarciano 7 месяцев назад

      No, the simulation would have been worthwhile if the decision to roll 1 die as is actually the case was incorperated

  • @hubertperreault143
    @hubertperreault143 8 месяцев назад

    Excellent video! Thank you, although, I wonder why on the table you got from the millions of simulations, for the first confrontations i.e. (2;1), (3; 1), where (num att; num def), we do not get the same results as the plots you got statistically? For example, from the middle-bottom plot shown at 2:21, 2 attackers and 1 defender should lead to a loss of 1 for the defender about 57,5% of the time (and so a win for the attacker seeing as there is only 1 defender). But the table from the simulations shows it leads to an attacker win 75,4% of the time. Any idea why your simulations does not represent the statistical values for the confrontations with 1 defender?

  • @mathamour
    @mathamour 8 месяцев назад

    We know that, the iterative formula to find bth root of a is given by: Xn+1 = ( (b-1)*Xn + a/(Xn^(b-1)) ) / b a=12 a^(1/6) = 1.513085749 1.513085749^6 = 12 12의 6제곱근 구하기 초기 x=1.513085749 로 잡았을 때, x = ( (5)*x+ a/(x^5) )/6 = 1.513085749 a=12 a^(1/2.5) = 2.701920077 2.701920077^2.5 = 12 x=2.701920077 x = ( (2.5-1)*x+ a/(x^(2.5-1)) )/2.5 = 2.701920077

  • @mathamour
    @mathamour 9 месяцев назад

    X=(X+A/X)/2 X= Square Root ( A ) | X=A/X X= Square Root ( A )

  • @mathamour
    @mathamour 9 месяцев назад

    감사합니다 😍😍😍

  • @NEERAJKUMAR-iy9kn
    @NEERAJKUMAR-iy9kn 10 месяцев назад

    you are right, realistic car steering in games us really very difficult, thanks for the video.

  • @mysticgold5123
    @mysticgold5123 10 месяцев назад

    great vid

  • @enricomattioli53
    @enricomattioli53 11 месяцев назад

    great video, straight to the point

  • @mohammadjadallah9813
    @mohammadjadallah9813 11 месяцев назад

    Can someone please explain to me how 3v3 for attackers is a slight disadvantage for the attackers. I understand that they might lose one of their dies but isn't every battle that starts with 3v2 advantageous for the attackers slightly? So it should have a domino effect as the numbers get better on both sides??

  • @mrmaestrouk
    @mrmaestrouk Год назад

    Show me ONE SQUARE OR CIRCLE OR A TRIANGLE ON EARTH ANYWHERE… There are NO SUCH shapes

  • @garthwhitelum1971
    @garthwhitelum1971 Год назад

    Thanks for the video. The blog doesn't exist. Any suggestions for another site?

  • @ricopin
    @ricopin Год назад

    Thanks! I was looking for exactly that.

  • @phpsoftwareengineering
    @phpsoftwareengineering Год назад

    This is exactly what I was looking for. My wife and I recently played a game and it just went on and on and on until we finally just gave up. 😂 I started thinking about doing exactly what you just showed in this video. I’m happy I found it so now I don’t have to.

  • @ezrachua1317
    @ezrachua1317 Год назад

    bad example, its not 0 both ends

  • @alecgamer420
    @alecgamer420 Год назад

    Thanks!

  • @frankdearr2772
    @frankdearr2772 Год назад

    hello, do you have an idea why I get pi with (1 + 1/-4.136866650678035)^-4.136866650678035 = 3.141592653589793 3488520084713809 ?? Thanks for your help and your usefull video about how to calculate pi :)

  • @faranocks
    @faranocks Год назад

    Working on an FPGA and I found the best general approximator is [(a+b) >> 1] for sqrt(a*b).

  • @leostokes
    @leostokes Год назад

    He trapped it using limits. In 400 BC! But no one calls his method limits. He did it again in the quadrature of the parabola.

  • @FunWithBits
    @FunWithBits Год назад

    The world's fastest computer based (java or C#) 'Newton's method' can be found by searching "NewtonPlus Square root".

  • @Shivangconman
    @Shivangconman Год назад

    Hm nice

  • @guy_th18
    @guy_th18 Год назад

    Nice fun video. Just wondering, did you use AI TTS for narration? Some parts (like 3:55) sound a bit weird.

    • @dubiousinsights4008
      @dubiousinsights4008 Год назад

      No, that was me speaking the whole time. I heard my voice get a bit wonky at one point when I was recording it, and I heard it in the editing, but I never fixed it. I did run the whole thing through Adobe Audio Enhancer, podcast.adobe.com/enhance That's the first time I've used that, and I think it worked really well. It greatly reduced various clicks and pops and mouth noises that I've previously been manually cutting out using Audacity. Thanks for watching!

  • @dubiousinsights4008
    @dubiousinsights4008 Год назад

    Like this video or you'll run out of Chat GPT quota

  • @revimfadli4666
    @revimfadli4666 Год назад

    Finally someone who realizes that negative feedback control environments can be done with just 1 neuron 😁

  • @BrunexGamerYT
    @BrunexGamerYT Год назад

    Source Code pls

  • @avinashjha7848
    @avinashjha7848 Год назад

    Thanks for this simple and awesome tutorial ❤

  • @weggquiz
    @weggquiz Год назад

    this is epic

  • @jawnney
    @jawnney Год назад

    Great work! Why do you believe it was developed by John Conway, tho? I'm pretty sure that's not true.

  • @lukandrate9866
    @lukandrate9866 Год назад

    Oh my god I literally discovered this formula on paper using the average inequality an hour ago because I was just pissed off that my square root approximation program worked too slowly

  • @rogermichou8654
    @rogermichou8654 Год назад

    2:22 women trying to park

  • @Paul-rs4gd
    @Paul-rs4gd Год назад

    Great tutorial - I am using it now to help my gf learn to park.

  • @PooperScooperTrooper
    @PooperScooperTrooper Год назад

    I programmed mine over the last few days...purely by accident. I started with 2 objects, one chaser and one runner. I then scaled that up...and a few hacks here and there and it's looking nice now...now I must continue my search for youtube videos about particle life!

    • @thebeckett2814
      @thebeckett2814 Год назад

      i am on the same search email me if you find anything

  • @gavroche95
    @gavroche95 Год назад

    Try to slow down a bit