Answer:
See explaination for the program code
Explanation:
The code below
Pseudo-code:
//each item ai is used at most once
isSubsetSum(A[],n,t)//takes array of items of size n, and sum t
{
boolean subset[n+1][t+1];//creating a boolean mtraix
for i=1 to n+1
subset[i][1] = true; //initially setting all first column values as true
for i = 2 to t+1
subset[1][i] = false; //initialy setting all first row values as false
for i=2 to n
{
for j=2 to t
{
if(j<A[i-1])
subset[i][j] = subset[i-1][j];
if (j >= A[i-1])
subset[i][j] = subset[i-1][j] ||
subset[i - 1][j-set[i-1]];
}
}
//returns true if there is a subset with given sum t
//other wise returns false
return subset[n][t];
}
Recurrence relation:
T(n) =T(n-1)+ t//here t is runtime of inner loop, and innner loop will run n times
T(1)=1
solving recurrence:
T(n)=T(n-1)+t
T(n)=T(n-2)+t+t
T(n)=T(n-2)+2t
T(n)=T(n-3)+3t
,,
,
T(n)=T(n-n-1)+(n-1)t
T(n)=T(1)+(n-1)t
T(n)=1+(n-1)t = O(nt)
//so complexity is :O(nt)//where n is number of element, t is given sum
A backup is the copy made in this case
Answer:
dont think u can actually report someone, pero u can report their questions/answers by clicking on the little flag icon and selecting why u want to report them. if they get reported enough they can be banned for about a day or so,, or they could get permanently banned
Explanation:
Answer: Develop the structure of the screenplay
Explanation:
The screenplay helps the team find the character of the film and develop it.
Answer:
True is the correct answer for the above questions.
Explanation:
- A data dictionary is used to hold the structure and definition of the database. It is because it is used to hold information about the database or operational database.
- It is a set of schema through which the user can understand the structure of the database. It can be used to define the metadata also. The metadata detailed the data of a database.
- The above question-statement also wants to states about the same which is described above which is the definition of the data dictionary. Hence it is a true statement.