Top answers


Describe a queue data structure.

A queue is a FIFO (First In First Out) data structure. Analogous to a production line, the first item in the list will be the first to be removed, the second the second and so on.
MT
Answered by Michael T. Computing tutor
3288 Views

Describe a stack data structure.

A stack is a LIFO (Last In First Out) data structure. Analogous to a stack of plates, every new data entry is placed (or pushed) onto the top of the stack, and to get the the data below it, you must first re...
MT
Answered by Michael T. Computing tutor
3889 Views

∫ log(x) dx

Using "Integration by parts" or "reverse chain rule" . Recall formula for intergration by parts: "∫f'(x) g(x) dx = f(x)g(x) - ∫f(x)g'(x)dx" Then set f'(x) = 1, g(x) = log(x). Ca...
MT
Answered by Michael T. Maths tutor
49336 Views

Differentiate f(x) = 2xlnx.

Use the chain rule: f'(x) = v(du/dx) +u(dv/dx). Let u = 2x, du/dx = 2, v = lnx, dv/dx = 1/x Using this information: f'(x) = 2lnx + 2x/x This simplifies to f'(x) = 2lnx +2.
TV
Answered by Tom V. Maths tutor
23117 Views

A simple circuit contains a battery rated at 12V, connected in series to a filament lamp with a resistance of 3 ohms. What current flows through the filament lamp?

V=IR, where V is voltage (volts), I is current (amps) and R is resistance (ohms). Since V and R are known, I needs to be found. Rearranging the equation gives: I=V/R. Inputting the values gives I=12/3. I=4A
TV
Answered by Tom V. Physics tutor
5922 Views