Computer Science, asked by shewiyun, 4 months ago

A: Create a variable declaration grammar that accepts: single/multiple declaration of variables (e.g int x, y; float a, char s), single/multiple dimensional of arrays (e.g float d[12][3], char p[10]), pointer type variables (e.g. int *ptr) and record (e.g. STRUCT type) type variables. B: Now consider that the integer takes 5 bytes, float takes 10 bytes and char takes 1 byte. Create an SDD that generate the total bytes allocated by any declaration statement. (e.g int s[10][3] allocates 150 bytes in memory). C: Create dependency graph for the input string using the grammar developed in the above PART A. record {int x; float y[10];} data[5]; D: Now convert the developed SDD into an equivalent SDT.

Answers

Answered by pandasoumitra2011
4

Answer:

For example, take a look at a 7 x 8 grid below: X W X G W A Here the agent is at the position (0,0), and the goal is at the position (3,7). If the agent moves to the ‘W’ cell at (4,2), then the agent will be transported to either (3,6) or (2,7) or (4,7). Given the scenario above, answer the following questions: I. What is the PEAS description of the agent? II. Describe its task environment. III. Model this problem as a search problem IV. What is the branching factor of this problem? V. Can we use BFS or DFS on this problem? Explain your answer. VI. Given the scenario above, write down the path that will be discovered by UCS? VII. If we can run BFS on this problem, will BFS and UCS give the same answer? Explain VIII. Will Euclidean distance be an admissible heuristic? Will Manhattan distance be an admissible heuristic? Prove your answer. IX. Come up with your own admissible heuristic, and solve the problem above using your heuristic and A* search.

Answered by ramesh015
2

Answer:

The sum of individual atoms can be used to find the mass of a molecule.

The mass of hydrogen peroxide, H2O2 would be calculated like this:

H2O2 has 2 hydrogen atoms and 2 oxygen atoms in it.

Therefore the mass is

2 X H = 2 X 1.01 u = 2.02 u

2 X O = 2 X 16.00 u = 32.00 u

34.02u

So one molecule of hydrogen peroxide weighs in at 34.02 u.

The periodic table provides you with individual atomic masses. If you know the number and type of elements in a molecule you can add up the individual masses to find the molecular mass or molecular weight.

Find the molecular mass of calcium phosphate, Ca3(PO4)2

The molecule has 3 calcium atoms, 2 phosphate atoms and 8 O atoms in it. Stop and verify this for yourself. The Ca has a subscript 3 with it. The P has an assumed 1 and the O has a 4. However the PO4 group has a set of brackets around it with a subscript

Similar questions