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
Mazyrski [523]
3 years ago
15

. (a) Prove or disprove carefully and in detail: (i) Θ is transitive and (ii) ω is transitive. (b) Assume n is a positive intege

r. Algorithm A(n: int) int z = 0; int temp = 0; for (int i = 0; i < n ; i++) { for (int j = 0 ; j < i ; j++) { int temp = i + j ; int z = z + temp; } } System.out.println(z) ; What is the input size for Algorithm A? Analyze carefully and explicitly the time complexity of A in terms of the input size. Show all steps. Is A a polynomial time algorithm? Justify your answer.
Computers and Technology
1 answer:
Sergio [31]3 years ago
6 0

Answer:

The Following are the solution to this question:

Explanation:

In Option a:

In the point (i) \Omega is transitive, which means it converts one action to others object because if \Omega(f(n))=g(n) indicates c.g(n). It's true by definition, that becomes valid. But if \Omega(g(n))=h(n), which implies c.h(n). it's a very essential component. If c.h(n) < = g(n) = f(n) \. They  \Omega(f(n))   will also be h(n).  

In point (ii), The  value of \Theta is convergent since the \Theta(g(n))=f(n). It means they should be dual a and b constant variable, therefore a.g(n) could only be valid for the constant variable, that is  \frac{1}{a}\ \  and\ \ \frac{1}{b}.

In Option b:

In this algorithm, the input size value is equal to 1 object, and the value of  A is a polynomial-time complexity, which is similar to its outcome that is O(n^{2}). It is the outside there will be a loop(i) for n iterations, that is also encoded inside it, the for loop(j), which would be a loop(n^{2}). All internal loops operate on a total number of N^{2} generations and therefore the final time complexity is O(n^{2}).

You might be interested in
ASAP FAST PLSKara is currently creating a storyboard for her web site. Which step of the web design process is she in? Coding Pl
laiz [17]

She is currently in planning

7 0
3 years ago
Read 2 more answers
The variable grade can have any real number value from 0 to 100. Ask the user to enter a grade in numerical form. Write an if-el
Alborosie

Answer:

See explaination

Explanation:

#include <iostream>

using namespace std;

int main()

{

float marks;

cout<<"Enter your grade value :";

cin>>marks;

if(marks>=90)

cout<<"Your grade is 'A'";

else if(marks>=80&& marks<90)

cout<<"Your grade is 'B'";

else if(marks>=70&& marks <=80)

cout<<"Your grade is 'C'";

else if(marks>=60&& marks <70)

cout<<"Your grade is 'D'";

else

cout<<"Your grade is 'F'";

}

8 0
3 years ago
What are the paparazzi?
Roman55 [17]

Answer:

d.photographers who follow stars to take pictures

8 0
3 years ago
Need answer ASAP plz
Natalka [10]

Answer:

i can't read a single word on there i'll come back to it if you can zoom in a little

Explanation:

6 0
3 years ago
When patel’s advertising co. decided to upgrade its computer network, many people were involved in the decision. In b2b buying s
babunello [35]

In b2b buying systems, decisions are often made by by a committee after a lot of considerable deliberation.

<h3>What is Business-to-Business service?</h3>

Business-to-business is known to be a kind of a scenario where one business is said to often makes a commercial transaction with another kind of business.

The B2B decision-making process is known to be made up of some discrete tasks such as:

  • Knowing that there is an issue or need.
  • Examining  and comparing the available alternative or solutions
  • Defining the requirements that is needed for the product and others.

Hence, In b2b buying systems, decisions are often made by by a committee after a lot of considerable deliberation.

Learn more about b2b from

brainly.com/question/26506080

#SPJ1

4 0
2 years ago
Other questions:
  • The specifications for ____ are developed by the world wide web consortium (w3c) and are continually evolving.
    13·1 answer
  • Write the execution steps if the input is a lion.
    11·1 answer
  • 1. Given a sequential list with n numbers, represented in a one-dimensional array A) Write an algorithm to check if the list has
    14·1 answer
  • You have added a table to your web page consisting of two columns and five rows, including the header row. in the first header c
    13·1 answer
  • The word __________ refers to the numbers, words, or more generally, any collection of symbols that is manipulated by a program.
    7·1 answer
  • Having friends who cause you stress can decrease your happiness, which can in turn
    13·2 answers
  • Using range(1,101), make two list, one containing all even numbers and other containing all odd numbers. How can I do this on Py
    15·1 answer
  • To reduce the potential for repetitive stress injury you should use proper?
    6·1 answer
  • Hey everyone please let my friends answer please?????? .
    12·2 answers
  • For her presentation on Italy, Matilda used a red background with light green text. When her friend critiqued her presentation,
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!