Hello! (Wave)
Consider a singly-linked list L each element of which is a struct with two fields, an integer num and a pointer next to the next element of the list.
Describe an algorithm that gets as argument a pointer to the first element of the list L and that creates a new list L' that...
Given a list (a,b,c,d,e,f) What method can I use to quickly find all 15 pairings of two letters. I can do it without using a specific decision procedure throughout but sometimes combinations get repeated and its hard to check quickly which ones have already been. Essentially I would like an...
This idea came to me while jotting down some notes to get a handle on my villains. There is a thread here dedicated to what some of our favorite science fiction novels are. If I needed to study some form of physics, astronomy, or cosmology I could put out a call and you nice folks would provide...
Hello all. I was wondering if anyone has any external sources for a list of math textbooks, particularly by the same author, going from arithmetic all the way to differential calculus (or some other harder form of mathematics). The reason I want it to be the same author, is so I can be sure that...
Homework Statement
The Attempt at a Solution
My answer was C but the correct answer is A. My reasoning is that they are all bonded to chlorine, so the further away the element is from chlorine on the periodic table, the more ionic the compound is and the higher the melting point is. The...
When I use the code directly below, it works (indicated by the "Out:...").
tmp2 = Flatten[{33, {1, 2 + j, 6}, 55}];(*Out:{33,1,2+j,6,55} *)
tmp2[[4]]; (*Out: 6 *)
But when I use it inside a loop, it acts like the tmp2 list is not the correct size:
For[j = 0, j <= 5, j++,
tmp2 = Flatten[{33...
Hey guys, I've been asking around trying to see what schools on my list are 'reach', 'safety', or 'matches' for my profile. I was wondering if you guys could take a look and let me know if there's something that's too crazy or well within reach (or if I should just wait 'till next semester based...
Hi, I am filling up graduate school applications, but I am asked to list the universities I am applying for. Any ideas about the reasons they ask us? Should I tell them? I am afraid this information will affect the admission in a bad way.
Hi! (Smile)
Given two sorted lists $M_1, M_2$, I want to write an algorithm, that creates a new list $M_3$, that contains the elements of $M_1$, that do not exist in $M_2$.
That's what I have tried:
Algorithm(M1,M2){
pointer q=M1, p=M2, M3;
int same=0;
if (M1==NULL) return error...
Hello! (Wave)
Given two lists, $L_1$ with $n_1$ elements and $L_2$ with $n_2$ elements, I want to write an algorithm that creates a new list $L_3$, for which the following stand:
The elements at the odd positions of $L_3$ are these that are at the even positions of $L_1$
The elements at the...
Hello! (Smile)
Suppose that each node of a list has the following structs:
string
$$$$
num
$$$$
next
It is given a string $w$. Suppose that $w$ is in the list at a node $p$, of which the struct num has the value n.
We are looking for the value of the struct string of the node that...
Hi, I'm trying to reverse a list in Common Lisp without using the reverse function.
I've had a go but it's not working. Can anyone help?
(defun my-reverse(my-list)
(cond
((null my-list) nil)
(t (append (my-reverse(cdr my-list))
(list (car my-list))))))
Thanks.
Hey Everyone,
Would appreciate any advice or suggestions.
I know that I do not have many "safeties", but that is because I am applying to a bunch of master's programs (not physics /because of research interest)
Physics GPA: 3.5ish ( No grade lower than a B... lots of advanced courses!)...
Hello! (Smile)
I want to implement the algorithm Delete() for linked lists.
That's what I have tried:
void Delete(pointer L,Type x){
if (L==NULL){
printf("There is no element x in the list. \n");
return;
}
pointer q=L;
while (q!=NULL &&...
Hey! :o
When I have to delete a list from an array of linked-lists, do I have to delete all the nodes of the list? Or do I have to do also something at the array??
There is a list, I have to separate this list into two others and delete the initial list from the array.
I used a function to...
So I'm looking for opinions on the list of grad schools I'm looking to apply for. I am not sure if I am applying to too many "reach" schools or not.
I am interested in doing plasma physics, most likely experiment and computation, but theory isn't completely out of the question either.
First...
I'm planning to contact potential advisors for grad school. I want to send my transcript, but the unofficial transcript I get from my school's website is really cluttered with information that isn't very helpful or informative. I feel like a simple list of courses and grades for each semester...
I'm a new TA in a physics laboratory and we're going to redesign experiences for fundamental physics II lab that is a semester course on electricity and magnetism for undergraduates in their 2nd year.
What is your proposed list of experiences for a Physics II (Electricity and Magnetism)...
Hi everyone:
I would like to join all elements of on matrix into just one list:
matrix =
1 2 3
4 5 6
7 8 9
into
list = {1,2,3,4,5,6,7,8,9}
Anyone has a solution for this?
Thanks
Does anyone know of anywhere on the internet where I may find a spreadsheet containing the names of the 230 space groups?
In a perfect world this would simply be a csv file containing the schoenflies and hermann-maguin notations; but I can't be too picky.
Thanks
I am trying to create a list of stars.
I need a comprehensive comparison between:
FK5#s, HD#s and BD#s
and
NGC#s, IC#s and Proper Names (like Eagle Nebula)
Here is a reference from FK5#s, HD#s and BD#s:
http://www-kpno.kpno.noao.edu/Info/Caches/Catalogs/SAO/sao_catalog.html
What...
List all values of x for which each rational expression is undefined:
\frac{x^2-9}{x^2-3x-10}
Answer is 3, -3
q1) Are these -, and positive answer interchangeable ones because it is a rational expression so when I see rational that's going to signal it's going to need 2 answers (either...
I only see positive factors in my book. Example: 2 and 2 are factors of 4. But aren't -2 and -2?
Is there some unspoken rule in math that only positive factors count? Thanks!
Hi all, first post and an amateur enthusiast here. I'm a 33 year old programmer who takes an interest in the mysteries of quantum mechanics and trying to nurture my own little theories.
I've came across variations of the double slit experiment and was wondering if there's such a resource that...
Aim: create a thread for prospective writers, which kind of planet/moons is possible to set their story. The best are the cool and exotic (exotic for an Earthling) ones - "floating mountains" - forbidden. Tidally locked - OK.
Conditions: a ship wrecked astronaut would not be immediately doomed...
Definition/Summary
This article is a list of standard integrals, i.e. the integrals which are commonly used while evaluating problems and as such, are taken for granted. This is a reference article, and can be used to look up the various integrals which might help while solving problems...
I am creating a border for an image view using xml. This is what I have:
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:duration="200">
<shape
android:shape="rectangle" >
<stroke...
I decided to make a library for some common data structures and I'm facing some design problems.
I wanted to implement linked list using classes in c++.
Here is the sample class:-
class Linked_List
{
private:
int key;
Linked_List* next;
public:
Linked_List(int key)...
It is surprising how expensive the books are that contain the Ramaujan identities and equations. I understand the work to 'prove' them must have been a tremendous undertaking however I find the price of the 'notebooks' for Ramanujan's work prohibitively expensive.
I believe wolfram put it...
I am looking for a book that has a comprehensive list of Ramaujans Identities and Equations. I have read that he created 3900 such pieces of work and it would be fascinating to see such a collection that came from just one person.
Homework Statement
Create a SortedLinkedList class which implements the LinkedListInterface.
Remember to use the Comparable class
Basically, I need to implement a sorted linked list that uses generics and uses compareTo to sort objects. I need it to be able to sort names...
Below is a list of physicist I compiled, and there achievements. I have sources if you want them. Do tell me if there is any more I should add or anything I should add to their bios, thanks in advance.θ
Richard Feynman (1918-1988)
Developing Path Integral Formalism of Quantum Field...
Hi everyone,
i am just wondering why I cannot find a list of Charge Conjugation and Parity numbers for all the appropriate particles?
I mean, I can look online and sift through sources for individual particles (for example, after some research I have found the the photon has a charge...
I have a function that results in 'exact' values for even powered summation series but it gives odd results for powers of '2' and '12+', how exciting! Unfortunately this also means the function is a far cry from a 'general solution'...
Does anyone have a comprehensive list of power summations...
I'm making a generic linked list class. For reference, firstNodePtr and lastNodePtr are pointers to the nodes at the beginning and end of the list. I'm trying to make a function that removes duplicate elements, which in turn calls a function for deleting a particular node. I think it does what I...
Scientists find near-definitive list for rare "earthquake lights"
Scientists find records of rare 'earthquake lights'
http://www.usatoday.com/story/news/nation/2014/01/02/earthquake-lights-rare-phenomenon/4255097/
Dear members,
I'd like to collect those properties of "spin" that makes it different to a normal (classical) angular momentum or magnetic moment.
Please help me, correct, reword my sentences one by one. I'd like to create a short but still understandable and correct list.
1. Spin quantum...
Homework Statement
Homework Equations
The Attempt at a Solution
I don't understand how when p1 hits the end of the linked list, p2 will be at the midpoint.
This is how I am imagining it if n=3. Each step below represents an iteration.
1. a1 (p1, p2)->a2->a3->b1->b2->b3...
I am very interested to know which peer-reviewed journals are considered seriously by mainstream scientists for articles on SR/GR (even if they are not restricted to SR/GR only).
There are a lot of 'peer-reviewed' journals out there which publish on SR/GR, but which are the well regarded ones...
Hi all,
I have a function varying in mass varible as 1000 - 1500-2000, etc, I made a list of the values
of this function for these values of mass but when I plot by
mathimatica by ListPlot it appears some how discerte between the points I defind not a continus graph.
So any help to...
Hello All,
I am having 1000 consecutive numbers always starting with 1, and there could be upto 24 missing numbers from the list.
My question is, what pieces of information should I have in order to find out those missing numbers.
So far I came up with,
1. Sum of missing numbers.
2...
Say, I am trying to learn how to use minipage but there is some space on top of the table that seems to be coming from nowhere...any idea what might be going on? The huge space is still there even when I remove vspace 10pt, besides, 10pt is not that much...anyway.
thanks,
gsal...
Hi,
I found this problem along with the solution:
"Given an array of distinct integers, give an algorithm to randomly reorder the integers so that each possible reordering is equally likely. In other words, given a deck of cards, how can you shuffle them...
I have pasted my code here : http://pastebin.com/nMNarH9i
It is in language C.
Basically, I am reading in 5 numbers at a time.
Putting these numbers in array one_vote_array.
Then I need to put this array in a structure vote_node.
I also then change my next pointer in the structure to head...
Does anyone know if there is a good place to find a list of proof identities? Basic stuff like the disjoint or if-then in logic symbols. It would be nice to have a place to make sure I'm remembering them correctly and to search for more.
Thanks!
Hi all,
Suppose I declare X in the main program.
Then in the following subroutine:
Call example(list of arguments)
------------------------------------
subroutine example(list of arguments)
x=y+z
end subroutine
-------------------------------------
I have two options:
(a)...
Identify "explicit shape spec list" in the FORTRAN code
Hi,
I'm trying to do some source code analysis using the ROSE compiler infrastructure on some of the kernels in NAS Parallel benchmark.
I get an error while parsing the Embarrassingly Parallel kernel. Digging further, I gathered that...