<< Prev Showing: 171-175 of 353 Next >>
· 146-150 · 151-155 · 156-160 · 161-165 · 166-170 · 171-175 · 176-180 · 181-185 · 186-190 · 191-195 · 196-200 ·Mr. Johnson draws an n-input comparison network with m comparators according to the following conventions. The lines of the network go left-to-right, and comparators are drawn vertically to connect two lines. The network is drawn on an underlying grid, so that each comparator occupies one of at most m columns. Comparators can share columns, but they do not overlap. Mr. Johnson represents a given drawing as a list L of triples, in which each triple (x, y, c) represents a comparator connecting line x to line y in column c. Describe an efficient algorithm to determine the depth of a comparison network, where the input is Mr. Johnson's representation of a drawing of the network. Analyze... click for more
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
107824
OTA ID:
105381
Describe and analyze EREW parallel random-access machine algorithms for the given problems.
Analyze your algorithm in each of the following cases. [a] Consider an n-element list in an n-processor EREW parallel random-access machine, where some elements of the list are marked as being blue. Describe an efficient parallel algorithm to form a new list consisting of all the blue elements. [b] Suppose that some nodes in an n-node binary tree are marked blue. Describe an efficient EREW algorithm to form a list consisting of the blue nodes that do not have a blue ancestor.
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
107825
OTA ID:
105381
BFS, DFS, DAGs, Topological sorting, and Dijkstra
What are the feature differences/tradeoff between Breath First search(BFS), Depth-Fisrt-Search(DFS), Directed Acyclic Graphs(DAGs), Topological sorting and Dijkstra?
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
108337
OTA ID:
105277
Java method with Multiple parameters
This is about methods with multiple parameters: Could you explain to me (in very simple terms) how methods with multiple parameters are declared? If possible, could you provide two short examples? I just need to get a head-start so I can implement this to my assignment if it comes up.
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
109316
OTA ID:
103644
Most programming languages do not allow you to ask two or more questions in a single comparison by using a logical And Operator Most programming languages allow you to ask two or more questions in a single comparison by using logical OR operator In an AND situation, first ask the question that is more likely to be true. When you satisfy two or more criteria to initiate an event in a program, you must make sure that the second decision is made entirely within the first decision Loops cannot be contained within subprograms When a calculation can be performed once before entering a loop, it is inefficient to place the calculation within the loop An array’s subscript may be an ... click for more
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
109474
OTA ID:
102804
<< Prev Showing: 171-175 of 353 Next >>
· 1-5 · 6-10 · 11-15 · 16-20 · 21-25 · 26-30 · 31-35 · 36-40 · 41-45 · 46-50 · 51-55 · 56-60 · 61-65 · 66-70 · 71-75 · 76-80 · 81-85 · 86-90 · 91-95 · 96-100 · 101-105 · 106-110 · 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 · 146-150 · 151-155 · 156-160 · 161-165 · 166-170 · 171-175 · 176-180 · 181-185 · 186-190 · 191-195 · 196-200 · 201-205 · 206-210 · 211-215 · 216-220 · 221-225 · 226-230 · 231-235 · 236-240 · 241-245 · 246-250 · 251-255 · 256-260 · 261-265 · 266-270 · 271-275 · 276-280 · 281-285 · 286-290 · 291-295 · 296-300 · 301-305 · 306-310 · 311-315 · 316-320 · 321-325 · 326-330 · 331-335 · 336-340 · 341-345 · 346-350 · 351-353 ·Page generated in 0.0969 seconds