Recent content by zeion

  1. Z

    How Many Edges and Keys in Specific Binomial Min-Heaps?

    Homework Statement a) What is the exact number of edges in a Binomial Min-Heap with 255 nodes? b) Consider a Binomial Min-Heap with 4097 distinct keys. What is the exact maximum number of keys that must be examined to find the minimum key? Homework Equations The Attempt at a...
  2. Z

    Vector Question: 3 dimensions inside a rectangular soild?

    But then I only have 2 sides and no angles?
  3. Z

    Vector Question: 3 dimensions inside a rectangular soild?

    This chapter in the textbook doesn't talk about dot products though.
  4. Z

    Vector Question: 3 dimensions inside a rectangular soild?

    Vector Question: 3 dimensions inside a rectangular soild?? Homework Statement Three forces of 5 N, 8 N, and 10 N act from the corner of a rectangular solid along its three edges. a. Calculate the magnitude of the equilibrant of these three forces. b. Determine the angle that the equilibrant...
  5. Z

    How to solve for theta for this trig question?

    I'm supposed to i) Sketch the angle and state the related acute angle ii) Determine the exact value of each trigonometric ratio The previous 3 questions I could do because they were all values I could find on the special triangle so they were easy. But I'm not sure how to relate 3/4 to...
  6. Z

    How to solve for theta for this trig question?

    So I use Pythagorean to get the opposite length? (sqrt(7) / 4) ?
  7. Z

    How to solve for theta for this trig question?

    Homework Statement cos(theta) = -3/4, pi <= theta <= 2pi Homework Equations The Attempt at a Solution I forgot how to do this. How do I use the special triangles to do this question? Do I need to square the sqrt(3) / 2 one or something? Thanks.
  8. Z

    End Behavior of Even and Odd-Degree Polynomial Functions

    Homework Statement My textbook tells me that "An even-degree polynomial function has the same end behavior" and "An odd-degree polynomial polynomial function has opposite end behaviors". Why is it that when I try to graph let's say "x^4 + 10x^3 + x^2 +x + 1" the end behaviors are opposite...
  9. Z

    [C] select() won't stop responding to read from client

    Hi, So I have written a server that will detect activity by connected clients using select. I am able to detect when a client has typed something from their keyboard, and then it will send send a message to the client in response. The problem is that select() seems to be returning the same...
  10. Z

    [C] How do I read a whole line from a client?

    Hi I'm trying to write a server that will ask for a client's name when they connect then store that name as a string with the client struct. I got everything set up but when the client types one letter it is immediately processed without waiting for a new line input. How can I make it wait for a...
  11. Z

    [C] Stupid pointers what the heck is going on here

    Nooo wayyy I've been trying to debug that the whole day!
  12. Z

    [C] Stupid pointers what the heck is going on here

    Hi, I don't understand how this can be so difficult. So I have a [char ** ptr] pointer that stores a list of arguments. I'm able to PRINT each of them by doing printf("%s\n", ptr[i]) But how the heck do I is strcmp to see if a certain argument is there? Apparently I cannot just do [if...
  13. Z

    [C] Circular-linked list ; finding a value ; pointer confusion

    Yeah, I set a pointer to the beginning of the list, then do a while loop that moves the current pointer forward each iteration until it is back to the head. In the loop, I try to compare the NEXT element value with the value I'm trying to find but the comparator always returns true regardless of...
  14. Z

    [C] Circular-linked list ; finding a value ; pointer confusion

    Hi, So I have a circular linked list; each element of the list has a int value and a next pointer to the next element. BUT. When I try to compare rather the NEXT element has a certain value, I always get a true return; how do I properly compare the structure values with an int? I'm doing...
Back
Top