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
yulyashka [42]
3 years ago
13

Witch of the following is a valid why a scientist might a scientific theory

Computers and Technology
1 answer:
ad-work [718]3 years ago
7 0

c i think because i new piece of info came in which changes peoples theorys

You might be interested in
Two hundred workstations and four servers on a single LAN are connected by a number of switches. You’re seeing an excessive numb
quester [9]

Answer:

Add more servers or decrease the amount of workstations

5 0
3 years ago
A palindrome is a string of characters that is the same when reversed (e.g., ‘affa’). Single characters are palindromes. Suppose
Nina [5.8K]

Answer:

Check the explanation

Explanation:

a) This done can be executed through the use of brute force by the given algorithm: Consider any two indices i and j then we can check if string from s[i....j] is palindrome or not in O(L) where L is length of string.

Algorithm to check if string is palindrome :

Takes String s as argument and the two indices i,j between which the string is to be considered

bool palindromeCheck(s,i,j) :

        y = j

        for x in range(i,j) :

             if(s[x]==s[y]) :

                      y--

                      continue

            else :

                      return false

       return true

Now taking a look at the  part a) we will be calling the function to confirm and execute palindrome for all i<=j that is a total of points of the order of O(n^2) and the string checking will take O(n) in the worst case making it O(n^3).

b) To advance over we became aware of the fact that repeated calculation is being done i.e when we confirmed the string s[i...j] we also tested in between strings like s[i+1,j-1] etc in the same time. Consequently we used memorization to store the outcome that we calculate and reuse them we need them later.

We know that P[i][i] will always be one since a single character string will always be a palindrome.

Using this as our base case to check for P[i][j] we need to check if the ith and the jth character are equal and also if P[i+1][j-1] is true i.e is a palindrome.

We come up with the following recurrence

P[i][j] = 1 if i=j

P[i][j] = P[i+1][j-1] ; if i>=j and s[i]==s[j]

            0; otherwise

There are order of O(n^2) states and each one of the state necessitates only constant and regular time character checking for its evaluation and then assigning the value of 1, P[i+1][j-1],0 as a result of that which is again a constant time operation. Therefore all the P[][] matrix values can be found in O(n^2) time.

Pseudo code :

Let n be the length of the string

for x in range(1,n) :

        P[x][x]=1

for sz in range(2,n) : # Since we have already computed answer for string of size 1

        for x in range (1,n-sz+1):

                   y=x+sz - 1

                   if x == y :

                            if sz==2 :

                                      P[x][y] = 1

                            else :

                                      P[x][y] = P[x+1][y-1]

                  else :

                            P[x][y] = 0

From the implementation also it is clear that the running time of the algorithm is O(n^2).

5 0
3 years ago
What are the home row keys?
kramer
ASDF JKL; are the home row keys.
7 0
3 years ago
Two variables, num and cost have been declared and given values: num is an integer and cost is a double. Write a single statemen
sweet [91]

// Writing a C++ Program for the given senario

#include<iostream>         // Using input and output stream

using namespace std;       // Using standard namespace

// Main function

int main(){

int num = 10;             // int num initialized with 10

double cost =1000;       // double cost initialized with 1000

/*

Cout is stream in C++ that uses << symbol to output anything on the screen and as the problem says we need to output both numbers on a line, i have used multiple << because on cout streams you are allowed to send one element at a time.

Also, endl is a keyword in C++ that ends the line after output for the cout stream is finished.

*/

cout<< num << " " << cost <<endl;

// Return 0 means telling the compiler to terminate the //program

return 0;

}

3 0
3 years ago
Describe a typical approach to resource sharing on a network. what is the delegation problem?
SpyIntel [72]
Yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyoooooooooooooooooooooooooooooooooooooooyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
7 0
3 years ago
Other questions:
  • Answer if you play PS4 apex legends if you do answer username and first to answer is brainliest
    15·2 answers
  • So if i was a you tuber and i went to a very popular site and posted my channel link but i am not a very big you tuber what woul
    13·1 answer
  • Write three statements to print the first three elements of vector runTimes. Follow each with a newline. Ex: If runTimes = {800,
    8·1 answer
  • A10:A20 Refer to values in
    8·1 answer
  • A capacitor of capacitance 102/π µF is connected across a 220 V, 50 Hz A.C. mains. Calculate the capacitive reactance, RMS value
    8·1 answer
  • The school has determined that finding the absolute best schedule cannot be solved in a reasonable time. Instead they have decid
    8·1 answer
  • FREE BRAINLIEST!!!
    14·2 answers
  • LINKS! <br><br> Help! Is there a way to make them not show up??
    6·2 answers
  • Please please help ASAP it’s timed
    13·1 answer
  • Which validation method would you use for first name on a data form
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!