Search:

Type: Posts; User: dbtid

Search: Search took 0.00 seconds.

  1. Yes, the complexity of a binary search is O(log2...

    Yes, the complexity of a binary search is O(log2 (N)).
    As an example, if you have 127 elements you want to search
    through, you can guarantee a decision one way or another in
    7 or less steps...
  2. Thread: need explanation

    by dbtid
    Replies
    7
    Views
    1,242

    what is this int(expr) function? did you mean to...

    what is this int(expr) function?
    did you mean to type (int) expr ?
  3. Thread: C speed.

    by dbtid
    Replies
    4
    Views
    1,377

    Define "fastest." If you mean shortest...

    Define "fastest."

    If you mean shortest execution time, I think you'll find that for
    most programs you write, if you compile it to machine code it's
    going to run comparably under most languages. ...
  4. Replies
    3
    Views
    1,813

    I'm not quite sure what you're asking by your...

    I'm not quite sure what you're asking by your example.
    First off, are you using interrupts? That's a good way to do it when they're
    bursty. You read the Rx register as long as there are bytes to...
  5. Thread: TxD line high

    by dbtid
    Replies
    3
    Views
    1,803

    Well, not knowing the device you're using in...

    Well, not knowing the device you're using in particular, I'll just
    point out one fact about most UARTS: the TxD line is tied to a
    shift register that's loaded when the next byte is to be...
  6. Replies
    3
    Views
    1,749

    a) A struct sockaddr contains more than just an...

    a) A struct sockaddr contains more than just an IP address.
    It contains information about the destination address (which might
    not even be an IP address!), the port, and some other things.

    Note...
Results 1 to 6 of 6