• Breaking News

    Saturday, October 2, 2021

    How would you design an algorithm that brute forces the 4 fours problem? Computer Science

    How would you design an algorithm that brute forces the 4 fours problem? Computer Science


    How would you design an algorithm that brute forces the 4 fours problem?

    Posted: 01 Oct 2021 01:02 PM PDT

    The 4 fours problem: https://en.m.wikipedia.org/wiki/Four_fours

    I'm a first year CS student, i just heard about this problem but I already knew about other problems of this class, and i always wondered if it's possible to write and algorithm that basically brute forces these problems, in order to find all solutions for a certain number/s, if yes, what would the structure of such an algorithm be? In particular, how do you make the machine execute random operations? I'm apologize in advance if this is a stupid question, and thanks for your time

    submitted by /u/attilio_
    [link] [comments]

    What are the uses of EBP register in x86 architecture?

    Posted: 02 Oct 2021 03:15 AM PDT

    I'm currently studying Operating Systems and looking at the x86 architecture. There are 2 registers: ESP (Stack pointer) and EBP (base pointer). The function of Stack pointer is pretty clear but I don't understand the function of the EBP. One application of EBP I read about was in GCC compiler where when a function call is made, the compiler stores the current EBP into the stack and then ESP adds the local variables. But other than that, I can't think of any application of EBP. Can anyone give some functions of the EBP?

    submitted by /u/-HoldMyBeer--
    [link] [comments]

    Space Complexity How to Compute?

    Posted: 01 Oct 2021 11:37 AM PDT

    Q1: Do the arguments of a function get incorporated into the space complexity?

    Q2: If I created a temporary array in a function but then it gets automatically deleted upon function exit, would the array still be incorporated into space complexity?

    Q3: Same as Q2 except I manually delete the array within the function before it exits. Would the array be incorporated then?

    Thank you so much for your help!

    submitted by /u/pottojam
    [link] [comments]

    Private vs Public Addressing

    Posted: 02 Oct 2021 02:11 AM PDT

    I'm very confused between Public and Private IP addresses.

    We all know that our ISP allocates us a single network address and then DHCP allocates us private addressing. And the request is forwarded to the internet from our machine by NAT.

    But when I search "What is my IP" on Google then why Google shows me Public Address, though We know devices don't have Public address, they only request using NAT protocol.

    Please clarify this

    submitted by /u/Cybercops786
    [link] [comments]

    Understanding Computer Science

    Posted: 01 Oct 2021 04:15 PM PDT

    Hello everyone I need some help. I'm in a Computer Science course in college but my instructor doesn't teach well at all in C++. I need any video on the basics of C++ and more so that I can understand it. Help is appreciated!!!

    submitted by /u/YoloDFox
    [link] [comments]

    No comments:

    Post a Comment