Answer:
Time Complexity of Problem - O(n)
Explanation:
When n= 1024 time taken is t. on a particular computer.
When computer is 8 times faster in same time t , n can be equal to 8192. It means on increasing processing speed input grows linearly.
When computer is 8 times slow then with same time t , n will be 128 which is (1/8)th time 1024.
It means with increase in processing speed by x factor time taken will decrease by (1/x) factor. Or input size can be increased by x times. This signifies that time taken by program grows linearly with input size n. Therefore time complexity of problem will be O(n).
If we double the speed of original machine then we can solve problems of size 2n in time t.
Answer:
def get_middle_ten(sentence):
ind = (len(sentence) - 12) // 2
return sentence[ind:ind + 12]
# Testing the function here. ignore/remove the code below if not required
print(get_middle_twelve("abcdefghijkl"))
print(get_middle_twelve("abcdefghijklmnopqr"))
print(get_middle_twelve("abcdefghijklmnopqrst"))
Answer:
A. <em>Encoding Process </em>
Explanation:
Memory is an <em>encoding process </em>that includes the organization and shaping of information by processing, storage, and retrieval of information.
There are two types of memory in computing, <em>RAM </em>and <em>ROM</em>. <em>RAM </em>stands for <em>Random Access Memory</em>. It I the core memory of the computer and it is especially faster regarding reading and writing process. As an analogy, RAM memory is like the “<em>Short-term</em>” memory of the computer. <em>ROM </em>stands for <em>Read-Only Memory</em>, this is the type of memory in charge of permanently storing data in the computer. It contains the necessary information to run the computer. As an analogy, <em>ROM </em>memory is like the “<em>long-term</em>” memory of the computer.
every program you open. Under the File menu, all of the following are the same in every program except
Save
Open
Close
Merge