The following diagram is from the section in my notes titled "Operations on Binary Search Trees". Specifically it explains via pseudocode how to implement a delete function for a BST:
http://img410.imageshack.us/img410/4225/deletetreexz0.jpg
What I don't understand in the 2nd box is why...
Homework Statement
1) Astronomers discover a binary star system that has period of 90 days. The binary star system consists of two equal mass stars each with a mass twice the sun's. They rotate about the center of mass at the midpoint between them. How far apart are the two stars?
2)...
Perform the following operation in binary:
15X-7
The Attempt at a Solution
I tried getting help on the engineering board, but nobody has helped yet, so I figured I would try over here...
- I can't seem to figure this one out for some reason. My first attempt, I used...
15X-7
The Attempt at a Solution
- I can't seem to figure this one out for some reason. My first attempt, I used 1111(15)X1001(2's complement of 7), but I can't get the right answer. I believe that the answer should come out to be the 2's complement of 105 since the actual answer is...
[SOLVED] Binary star system and Apparent magnatudes
I was asked this questing in my tetbook and can't figure out how to do it.
Suppose there is a binary system made up of two identical stars, each with an apparent
magnitude of +4.1. However, from our 40 cm telescope they appear as one star...
I have no idea where to put this thread, so I'm trying out this forum.
Why do computers use the binary number system instead of other n-base number systems? I did a Google search and I saw that one explanation was that in a circuit, certain devices are either turned on or off (1 or 0) which...
ok my gole is to build a software that
takes a numbers and splits it like this into nodes of a tree
48
8 6
2 4 2 3
1 2 2 1 2 1 3
1 2
i have tried some code but it doesn't give me the right resolt
i tried to implement it in this code...
Hello,
I am currently trying to figure out how I can use Microsoft Excel to calculate the ballistic trajectory of a test particle released from the inner Lagrange point in a semidetached binary. To keep things simple, I am using a two-dimensional coordinate system, and I am assuming that the...
there is a given binary tree
each of member are of a Node type
class Node {
int info;
Node left;
Node right;
}
in the info part of each node we have a number.
in each one of his leaves we have some number
and in each one of its roots (crossroads) we have zeros.
my gole is to...
Homework Statement
Let m\inN. We defined a binary operation on Zm:= {_{}0,_{}1..., _{}m-1}. Show that Zm together with this binary operation is a group. (Hint. For associativity you need to distinguish several cases)
Homework Equations
The Attempt at a Solution
I don't know what...
Let M be a system (possibly proper class-sized directed graph where the class of children of a given node is a set). A binary relation R on M is a BISIMULATION if R\subset R', where for a, b\in M
aR'b \Leftrightarrow ((\forall x \in a_M\exists y\in b_M xRy) \wedge (\forall x \in b_M\exists y\in...
hey guys,
im doing a report on binary stars, using doppler shifts to get some results for periods etc but bit unsure about how to do the errors?
i realize that the errors arise in the speed of the stars and the dispersion of the photons but how could i calculate this?
cheers for any help
x
[SOLVED] Apparent magnitude of binary star?
Homework Statement
A binary star has a total apparent magnitude of 15.00. One component star is twice as bright as the other.
a) Show that the apparent magnitude of the brighter star is 15.44.
b) The fainter star has an apparent magnitude of...
Homework Statement
Consider a double-star system with two stars, A and B, in circular orbits of the same period T about their center of mass. The Earth is in the plane defined by these orbits at a distance R of many light-years. Let the speed of A in its orbit be u; then at any instant it has...
Hey i was wondering if someone could help me express this using standard binary operators.
f(x,y,z)=\frac{max(0, (x-y) )}{z}
i.e. Eliminate the max() function and write it using proper math.
EDIT: max(a,b) simply chooses the largest value of the two variables.
I am currently working on a project to build a barcode scanner. I have built the apparatus to detect a signal and am able to view this signal on an oscilloscope, however I am wondering if it is possible to build a circuit to output this signal as a binary code on a series of LED's (or something...
Homework Statement
Say you have a binary star sytem. Both stars have mass M and semimajor axis a. The orbits are extremely eccentric (e is approximately 1). How would you describe the energy of the system?
Homework Equations
SEE BELOW
The Attempt at a Solution
Basically I'm very...
How many binary relation can be formed from the cartesian product below:
A = { 1 , 2 } & B = {a }
i know there are two ordered pairs in this cartesian products A * B.
i also know that there are 4 binary realtions. could someone please write
those four relations for me, i am really...
Does anybody know how to generate a random matrix with entries 0 and 1 only(binary matrix). Numbers of 1 and 0 are fixed every time matrix is generated.
Possibly a program in 'C'.
Thanks
Homework Statement
Covert the following numbers to 12-bit binary numbers using two's complement representation.
234
-234
Homework Equations
None I know of.
The Attempt at a Solution
I think I'm making this more complicated than it really is. For 234 I can just convert right to...
Homework Statement
In the binary number system 1100011 is the name for the largest 2 digit palindrome in base ten. What base 10 number does this binary number represent?
Homework Equations
None
The Attempt at a Solution
My question about this problem is the 2 digit part is...
Homework Statement
I have two planets of equal mass at points (0,-1) and (0,1) on my axes and I want to find the y-velocity of the planet at (0,1) that will make this a closed orbit. We can uniquely determine the y-velocity of the with this because linear momentum must be zero. Any ideas? What...
Field of Eschatology pertaining to the binary star "Wormwood"
Doe sanyone have any information of the binary star "Wormwood"
can they offer any insight as to how it coinsides with the book of Revelation chapter 8
I have 2 questions:
FIRST
I read from John H. Mathews’ Numerical Methods using MATLAB, 3E that the number
1563 can be expanded in form of 10-base expansion as:
(1 × 10^{3}) − (5 × 10^{2}) + (6 × 10^{1}) + (3 × 10^{0}) …......... (1)
Which results 1000 − 500 + 60 + 3 equal to 563...
Allright, now we know using the decimal system you can represent any number you want because you use a base 10 system. my question about the binary system is: you can very well represent numbers from 0 to 255 using 8 bits. Now, how can you show that you can represent EVERY number between these 2...
Hey guys, I have two questions about something I'm trying to minimize. I'm making a binary to seven segment decoder in Verilog, and I have a truth table set up. The board I'm going to be placing this on is active low.
My questions: I want to reduce, or minimize, this truth table, I was...
I want to build a binary matrix (with 1 and 0 entries) with all possible combinations, say for example if n is the number of entries of one row of the matrix, then 2^n is the total number of different entries in the matrix.
For instance, for n=3, 2^n = 8, so we would have the following matrix...
Hi to our nice community. I want to learn why
in a binary symetric channel the channel is calculated as
C=1+plogp+(1-p)log(1-p)
I only know that the channel is denoted as C=maxI(X;Y)
btw what ; means in X;Y?
Unfortunately my book doesn't mention these things so if u can reply me or...
Jacobi Symbol - Binary
NOTE: if its past 8:30 AM Eastern Time, don't worry about it. thanks for the consideration
The Question:
Exercise 13.1. Develop a “binary” Jacobi symbol algorithm, that is, one
that uses only addition, subtractions, and “shift” operations, analogous to
the binary...
I was wondering if anyone could suggest a resource to help me understand binary math better. Specifically I am having trouble two's compliment problems and binary multiplication.
An example of where my thought process is getting confused:
1110 * 010
The answer given for this example...
I have this problem:
Given is period of an eclipsing binary star system is 34 days, rest wavelength is 6563 angstroms while max doppler shift of 2.34 angstroms
I used the doppler equation to figure out the orbital speed of the star; now the question says to use the simplistic model of...
I know that in spectroscopic Binaries, you can observe wavelength shifts in each star. But how do you determine the total radial velocity of this system alltogether, and how do you find each star's radial velocity?
i have been trying to do this problem for an hour and i have no clue what to do for it... please help me
It's on the 4th page down and it is called "Spectroscopic eclipsing Binary System"
htt p://www.tufts.edu/as/wright_center/fellows/sci_olympiad/Spok_2000_C_Instrcs_&_Quests.pdf...
i have been trying to do this problem for an hour and i have no clue what to do for it... please help me
It's on the 4th page down and it is called "Spectroscopic eclipsing Binary System"
htt p://www.tufts.edu/as/wright_center/fellows/sci_olympiad/Spok_2000_C_Instrcs_&_Quests.pdf...
This problem deals with two main sequence stars in an eclipsing binary star system. I need to determine the system's peiod and separation (P and a).
Right now i know that the brightest star has an absolute magnitude of -1 (219 solar luminosity), is 17,000 degrees kelvin, has a radius of...
Eclipsing binary problem! I am really frustrated!
I have been looking at this problem for a while and i am really getting frustrated. I asked my astronomy teacher, but we are both stumped. This isn't graded, but i really need to learn how to do it for science olympiad.
Here it is. I have...
physics/astronomy eclipsing binary problem! help!
I have been looking at this problem for a while and i am really getting frustrated.
Here it is. I have an eclipsing binary system with a period of 1 year. Star Q has 800 solar luminosities, while the other star, star R, has 5 solar...
I am working with a program that produces a polydisperse mixture of binary strings. I was wondering if there was some methodology that exists that can measure the 'gradient strength' along each chain, ie, possibly some parameterization that can quantify this for something like 0001111 vs...
Homework Statement
What is the range of a 11bit code, using
c. Unsigned fixed-point with 8 binary places
Homework Equations
Base conversions
2^n where n is bits, for range/precision
The Attempt at a Solution
I have two ideas:
1)
The highest value that can be represented is...
Hello everyone. This problem has a few parts, and I'm on the last part and I'm having troubles and im' guessing my way is not the correct method. But here is the question.
Let A be a set with 8 elements.
a. how many binary relations are there on A?
answer: A binary relation is any...
Binary Relations--Transitivity
Hello everyone I'm not sure if I'm hitting all the ordered pairs on this because i can't seem to find a good method to figure it out. I also think the relation to itself is confusing me.
here is the question:
S is a binary relation defined on A = {0,1,2,3}...
here's what i have:
#include<stdio.h>
#include<string.h>
main() {
char string[32];
int sum = 0;
int a = 1;
int i;
printf("Please enter numbers:\n");
gets(string);
for (i=32;i<0;i--)
{
if(string[i] ==1)
{ sum = sum + a;
}
a = a * 2;
printf("The converted string is: %s \n"...
hello,
how I can calculate the composition of a gas binary mixture of vinyl chloride and water knowing that I have only the following informations:
the water is saturated by the vinyl chloride
the pressure of the mixture is 4bars
or can you tell me what I have to look as information to...
http://palantir.swarthmore.edu/maxwell/courses/e015/F06/labs/lab01/74191.pdf
I have this IC with me, and I have to draw the timing diagrams. I'm doing good so far, except that during the middle of a clock pulse, the U(not)/D changes from 0 to 1 (counting up to down). It happens dead in the...
Indicate briefly how the Margules' 3 suffix equations are derived for a binary solution.
ln gamma1 = [A12 + (B12 - A12)x1](x2)^2
ln gamma2 = [B12 + (A12 - B12)x2](x1)^2
Any idea how this would be shown.. :S
Hi, I'm new to these forums. Gonna give the homework help section a spin =] Here's my question:
(a) About half of the visible "stars" are actually binary star systems, two stars that orbit each other with no other objects nearby. Consider the motion of the center of mass of a binary star...