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...
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...
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...
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.
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...
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...
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...
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...
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...
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...