1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lbvjy [14]
3 years ago
13

Does time complexity depend on, which base arithmetic you use? like base 10, 2 or whatever else? Does time coplexity depned on t

hose?
Computers and Technology
1 answer:
bazaltina [42]3 years ago
6 0

Answer:

No. Time complexity does not depend on which base arithmetic is used.

Explanation:

No. Time complexity does not depend on which base arithmetic is used.This is because log n to the base 10 and log n to the base 2 differ by the multiplicative factor log 10 to the base 2 which is a constant value independent of n. Similar is the case while transforming from one base to any other base. Moreover multiplication by a constant value does not change the overall time complexity. So time complexity is independent of base arithmetic.

You might be interested in
3s X 82 = X +y? is this true
Sphinxa [80]

Answer:x

x+y over 3x^82

Explanation:

3 0
3 years ago
Read 2 more answers
Write a Python program to replace at most 2 occurrences of space, comma, or dot with a colon. Hint: use re.sub(regex, "newtext",
charle [14.2K]

Explanation:

The "re" module in python provides various functions to perform complex string operations easily.

For example, you can check whether a specific word exists in a given string or to replace it with some other word.  

Some of the functions in the re module are:

re.findall

re.search

re.sub()

We are particularly interested in the re.sub() function, we can use this function to replace the occurrences of space, coma or dot with semicolon.  

Syntax:

re.sub(pattern, replace, target_string, n).  

Where pattern = space, coma or dot  

replace = semicolon  

target_string = any string containing spaces, coma and dots

n = number of times you want the replacement to be done  

Code:

import re  

target_string = "Hello world,code,code."  

replace = ":"

pattern = "[ ,.]"

print(target_string)

print(re.sub(pattern, replace, target_string, 2) )

Output:

Hello world,code,code.

Hello:world:code,code.

It replaced the first white space and coma with semicolon, if we increase the n to 4 then the output is

Hello:world:code:code:

As expected, it replaced all of the space, coma, and dots with semicolons.

7 0
4 years ago
Consider a file system that uses inodes to represent files. Disk blocks are 8KB in size, and a pointer to a disk block requires
insens350 [35]

Answer:

64 terabytes

Explanation:

Given data:

Size of the disk block = 8 KB

Size required by the pointer to a disk block = 4 bytes

Now,

Size required by 12 direct disk blocks = 12 × 8

Size required by single disk block = 2048 × 8 KB

Size required by double disk block = 2048 × 2048 × 8 KB

size  required by triple disk block = 2048 × 2048 × 2048 × 8 KB

Now,

the maximum size of the file that can be stored in the this file system = 12 × 8  + 2048 × 8 KB  +  2048 × 2048 × 8 KB + 2048 × 2048 × 2048 × 8 KB  = 64 terabytes

5 0
4 years ago
A firewall, when properly implemented, can prevent most attacks on your system.
siniylev [52]
A. it is true
all the best
4 0
3 years ago
Which is developed during the process of technological design?
s2008m [1.1K]

Answer:Steps of the technological design process include: identify a problem, research the problem, generate possible solutions, select the best solution, create a model, test the model, refine and retest the model as needed, and communicate the final solution.

Explanation:

:)

3 0
3 years ago
Other questions:
  • True or false? The largest component of a database is a field.
    12·2 answers
  • To process the elements in an array, the counter in a for loop is commonly used as the ________________ of the array. -g
    13·1 answer
  • You can use any font when creating your website as all users can see the same fonts.
    15·1 answer
  • You have a site (Site1) that has about 20 users. For the last few months, users at Site1 have been complaining about the perform
    9·1 answer
  • An effective problem statement ensures that
    12·1 answer
  • ___ is a family of data formats that helps people automatically receive feeds anytime there are new postings to their favorite b
    14·1 answer
  • What is the safest way to pay online​
    13·2 answers
  • The one who will defeat me in this typing race I will mark the one brainliest:
    5·2 answers
  • What is string literal in Java?
    5·1 answer
  • Describe, with examples, the way in which a defect in software can cause harm to a person, to the environment, or to a company
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!