Answer:
An input size of N = 128 makes the algorithm run for 14 milliseconds
Explanation:
O(log2N)
This means that the running time for an algorithm of length N is given by:
[tex]F(N) = c\log_{2}{N}[/tex]
In which C is a constant.
Runs for 10 milliseconds when the input size (N) is 32.
This means that [tex]F(32) = 10[/tex]
So
[tex]F(N) = c\log_{2}{N}[/tex]
[tex]10 = c\log_{2}{32}[/tex]
Since [tex]2^5 = 32, \log_{2}{32} = 5[/tex]
Then
[tex]5c = 10[/tex]
[tex]c = \frac{10}{5}[/tex]
[tex]c = 2[/tex]
Thus:
[tex]F(N) = 2\log_{2}{N}[/tex]
What input size makes the algorithm run for 14 milliseconds
N for which [tex]F(N) = 14[/tex]. So
[tex]F(N) = 2\log_{2}{N}[/tex]
[tex]14 = 2\log_{2}{N}[/tex]
[tex]\log_{2}{N} = 7[/tex]
[tex]2^{\log_{2}{N}} = 2^7[/tex]
[tex]N = 128[/tex]
An input size of N = 128 makes the algorithm run for 14 milliseconds
What order? (function templates) Define a generic function called CheckOrder() that checks if four items are in ascending, neither, or descending order. The function should return -1 if the items are in ascending order, 0 if the items are unordered, and 1 if the items are in descending order. The program reads four items from input and outputs if the items are ordered. The items can be different types, including integers, strings, characters, or doubles. Ex. If the input is:
Answer:
Explanation:
The following code was written in Java and creates the generic class to allow you to compare any type of data structure. Three different test cases were used using both integers and strings. The first is an ascending list of integers, the second is a descending list of integers, and the third is an unordered list of strings. The output can be seen in the attached image below.
import java.util.Scanner;
class Brainly {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Order: " + checkOrder(10, 22, 51, 53));
System.out.println("Order: " + checkOrder(55, 44, 33, 22));
System.out.println("Order: " + checkOrder("John", " Gabriel", "Daniela", "Zendaya"));
}
public static <E extends Comparable<E>> int checkOrder(E var1, E var2, E var3, E var4) {
E prevVar = var1;
if (var2.compareTo(prevVar) > 0) {
prevVar = var2;
} else {
if (var3.compareTo(prevVar) < 0) {
prevVar = var3;
} else {
return 0;
}
if (var4.compareTo(prevVar) < 0) {
return 1;
} else {
return 0;
}
}
if (var3.compareTo(prevVar) > 0) {
prevVar = var3;
}
if (var4.compareTo(prevVar) > 0) {
return -1;
}
return 0;
}
}
If you fail a course as a MAIN (residency) course, you can repeat that course as either a MAIN (residency) or an online (IG or IIG) course.
A. True
B. False
Jane is a full-time student on a somewhat limited budget, taking online classes, and she loves to play the latest video games. She needs to update her computer and wonders what to purchase. Which of the following might you suggest?
a. A workstation with a 3.9 GHz quad-core processor, 16 gigabytes of RAM, and a 24" monitor.
b. A laptop system with a 3.2 GHz processor. 6 gigabytes of RAM, and a 17" monitor.
c. A desktop system with a 1.9 GHz processor, 1 gigabyte of RAM, and a 13" monitor
d. A handheld PC (with no smartphone functionality)
Answer:
a. A workstation with a 3.9 GHz quad-core processor, 16 gigabytes of RAM, and a 24" monitor.
Explanation:
From the description, Jane needs to be able to multitask and run various programs at the same time in order to be efficient. Also since she wants to play the latest video games she will need high end hardware. Therefore, from the available options the best one would be a workstation with a 3.9 GHz quad-core processor, 16 gigabytes of RAM, and a 24" monitor. This has a very fast cpu with 4 cores to process various threads at the same time. It also has 16GB of memory to be able to multitask without problems and a 24" monitor. From the available options this is the best choice.
Write a program that removes all non-alpha characters from the given input. Ex: If the input is: -Hello, 1 world$! the output is: Helloworld
Also, this needs to be answered by 11:59 tonight.
Answer:
Explanation:
The following code is written in Python. It is a function that takes in a string as a parameter, loops through the string and checks if each character is an alpha char. If it is, then it adds it to an output variable and when it is done looping it prints the output variable. A test case has been provided and the output can be seen in the attached image below.
def checkLetters(str):
output = ''
for char in str:
if char.isalpha() == True:
output += char
return output
write short note on the following: Digital computer, Analog Computer and hybrid computer
Answer:
Hybrid Computer has features of both analogue and digital computer. It is fast like analogue computer and has memory and accuracy like digital computers. It can process both continuous and discrete data. So it is widely used in specialized applications where both analogue and digital data is processed.
g 1-1 Which network model layer provides information about the physical dimensions of a network connector like an RJ45
Answer:
Physical layer
Explanation:
OSI model stands for Open Systems Interconnection. The seven layers of OSI model architecture starts from the Hardware Layers (Layers in Hardware Systems) to Software Layers (Layers in Software Systems) and includes the following;
1. Physical Layer
2. Data link Layer
3. Network Layer
4. Transport Layer
5. Session Layer
6. Presentation Layer
7. Application Layer
Each layer has its unique functionality which is responsible for the proper functioning of the communication services.
In the OSI model, the physical layer is the first and lowest layer. Just like its name physical, it addresses and provides information about the physical characteristics such as type of connector, cable type, length of cable, etc., of a network.
This ultimately implies that, the physical layer of the network (OSI) model layer provides information about the physical dimensions of a network connector such as a RJ45. A RJ45 is used for connecting a CAT-5 or CAT-6 cable to a networking device.
____________________ are designed according to a set of constraints that shape the service architecture to emulate the properties of the World Wide Web, resulting in service implementations that rely on the use of core Web technologies (described in the Web Technology section).
Answer: Web services
Explanation:
Web service refers to a piece of software which uses a XML messaging system that's standardized and makes itself available over the internet.
Web services provides standardized web protocols which are vital for communication and exchange of data messaging throughout the internet.
They are are designed according to a set of constraints which help in shaping the service architecture in order to emulate the properties of the World Wide Web.
Answer:
The correct approach is "REST Services".
Explanation:
It merely offers accessibility to commodities as well as authorization to REST customers but also alters capabilities or sources.
With this technique, all communications are generally assumed to be stateless. It, therefore, indicates that the REST resource actually may keep nothing between runs, which makes it useful for cloud computing.Which tools do you use for LinkedIn automation?
Automation tools allow applications, businesses, teams or organizations to automate their processes which could be deployment, execution, testing, validation and so on. Automation tools help increase the speed at which processes are being handled with the main aim of reducing human intervention.
Linkedln automation tools are designed to help automate certain processes in Linkedln such as sending broadcast messages, connection requests, page following and other processes with less or no human or manual efforts. Some of these automation tools include;
i. Sales navigator for finding right prospects thereby helping to build and establish trusting relationships with these prospects.
ii. Crystal for providing insights and information about a specified Linkedln profile.
iii. Dripify used by managers for quick onboarding of new team members, assignment of roles and rights and even management of subscription plans.
Answer:
Well, for me I personally use LinkedCamap to drive more LinkedIn connections, hundreds of leads, sales, and conversions automatically.
Some other LinkedIn automation tools are;
Expandi Meet Alfred Phantombuster WeConnect LinkedIn HelperHope this helps!
Which statement is NOT a source of threats?
a.
Poor management decisions, accidents and natural disasters.
b.
Data recovery
c.
financial mistakes
d.
loss of customers
Answer:
B
Explanation:
because data is phone business
the id selector uses the id attribute of an html element to select a specific element give Example ?
Answer:
The id selector selects a particular html element
Explanation:
The id selector is uses the id attribute to select a specific html element. For example, if we have a particular header which is an html element and we want to give it a particular background color, we use the id selector and give it an id attribute in the CSS file. An example of an html header with id = 'blue' is shown below. The style sheet is an internal style sheet.
!doctype html
<html>
<head>
<title>Test</title>
<style>
#blue { background-color: blue;
}
</style>
</head>
<body>
<h1 id = 'blue'>Our holiday</h1>
<p>This is the weekend</p>
</body>
</html>
2. Which tab is used to edit objects on the Slide Master and layouts?
A. View
B. Insert
C. Shape format
D. Design
Answer is not A. View
It’s B. Insert
Answer:
it is....insert tab..B
Explanation:
insert tab includes editing options
A user reports network resources can no longer be accessed. The PC reports a link but will only accept static IP addresses. The technician pings other devices on the subnet, but the PC displays the message Destination unreachable. Wh are MOST likley the causes of this issue?
Answer: is this a real question but I think it would be Ip address hope this helps :)))
Explanation:
When a database stores the majority of data in RAM rather than in hard disks, it is referred to as a(n) _____ database.
Answer:
in-memory.
Explanation:
A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to effectively and efficiently create, store, modify, retrieve, centralize and manage data or informations in a database. Thus, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.
Generally, a database management system (DBMS) acts as an intermediary between the physical data files stored on a computer system and any software application or program.
In this context, data management is a type of infrastructure service that avails businesses (companies) the ability to store and manage corporate data while providing capabilities for analyzing these data.
Hence, a database management system (DBMS) is a system that enables an organization or business firm to centralize data, manage the data efficiently while providing authorized users a significant level of access to the stored data.
Radom Access Memory (RAM) can be defined as the main memory of a computer system which allow users to store commands and data temporarily.
Generally, the Radom Access Memory (RAM) is a volatile memory and as such can only retain data temporarily.
All software applications temporarily stores and retrieves data from a Radom Access Memory (RAM) in computer, this is to ensure that informations are quickly accessible, therefore it supports read and write of files.
Generally, when a database stores the majority of data in random access memory (RAM) rather than in hard disks, it is referred to as an in-memory database (IMDB).
An in-memory database (IMDB) is designed to primarily to store data in the main memory of a computer system rather than on a hard-disk drive, so as to enhance a quicker response time for the database management system (DBMS).
Write a program that reads a list of words. Then, the program outputs those words and their frequencies. Ex: If the input is: hey hi Mark hi mark
Answer:
The program in Python is as follows:
wordInput = input()
myList = wordInput.split(" ")
for i in myList:
print(i,myList.count(i))
Explanation:
This gets input for the word
wordInput = input()
This splits the word into a list using space as the delimiter
myList = wordInput.split(" ")
This iterates through the list
for i in myList:
Print each word and its count
print(i,myList.count(i))
Describe the operation of IPv6 Neighbor Discovery.
Java !!!
A common problem in parsing computer languages and compiler implementations is determining if an input string is balanced. That is, a string can be considered balanced if for every opening element ( (, [, <, etc) there is a corresponding closing element ( ), ], >, etc).
Today, we’re interested in writing a method that will determine if a String is balanced. Write a method, isBalanced(String s) that returns true if every opening element is matched by a closing element of exactly the same type. Extra opening elements, or extra closing elements, result in an unbalanced string. For this problem, we are only interested in three sets of characters -- {, (, and [ (and their closing equivalents, }, ), and ]). Other characters, such as <, can be skipped. Extra characters (letters, numbers, other symbols) should all be skipped. Additionally, the ordering of each closing element must match the ordering of each opening element. This is illustrated by examples below.
The following examples illustrate the expected behaviour:
is Balanced ("{{mustache templates use double curly braces}}") should return true
is Balanced("{{but here we have our template wrong!}") should return false
is Balanced("{ ( ( some text ) ) }") should return true
is Balanced("{ ( ( some text ) } )") should return false (note that the ordering of the last two elements is wrong)
Write an implementation that uses one or more Stacks to solve this problem. As a client of the Stack class, you are not concerned with how it works directly, just that it does work.
Answer:
Explanation:
import java.util.*;
public class BalancedBrackets {
// function to check if brackets are balanced
static boolean isBalanced(String expr)
{
Stack<Character> stack = new Stack<Character>();
for (int i = 0; i < expr.length(); i++)
{
char x = expr.charAt(i);
if (x == '(' || x == '[' || x == '{')
{
// Push the element in the stack
stack.push(x);
continue;
}
if (stack.isEmpty())
return false;
char check;
switch (x) {
case ')':
check = stack.pop();
if (check == '{' || check == '[')
return false;
break;
case '}':
check = stack.pop();
if (check == '(' || check == '[')
return false;
break;
case ']':
check = stack.pop();
if (check == '(' || check == '{')
return false;
break;
}
}
// Check Empty Stack
return (stack.isEmpty());
}
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
System.out.println("\nEnter the expression to check is balanced or not !");
String expr = scan.nextLine();
boolean output;
output = isBalanced(expr);
System.out.println(output);
if (output)
System.out.println("Balanced ");
else
System.out.println("Not Balanced ");
scan.close();
}
}
In confirmatory visualization Group of answer choices Users expect to see a certain pattern in the data Users confirm the quality of data visualization Users don't know what they are looking for Users typically look for anomaly in the data
Answer: Users expect to see a certain pattern in the data
Explanation:
Confirmatory Data Analysis occurs when the evidence is being evaluated through the use of traditional statistical tools like confidence, significance, and inference.
In this case, there's an hypothesis and the aim is to determine if the hypothesis is true. In this case, we want to know if a particular pattern on the data visualization conforms to what we have.
The part of the computer that provides access to the Internet is the
Answer:
MODEM
Explanation:
Which of the following financial functions can you use to calculate the payments to repay your loan
Answer:
PMT function. PMT, one of the financial functions, calculates the payment for a loan based on constant payments and a constant interest rate. Use the Excel Formula Coach to figure out a monthly loan payment.
Explanation:
Describe how keyboard software works and which problems does keyboard software
need to handle?
Answer:
The target computer's operating system and gain unauthorized access to the hardware, hook into the keyboard with functions provided by the OS, or use remote access software to transmit recorded data out of the target computer to a remote location.
No physical sensation of pressing a button results in misfires. Lack of physical divisions between keys makes touch typing impossible. Smaller key spacing results in typos.
If you fail a course as a MAIN (residency) course, you can repeat that course as either a MAIN (residency) or an online (IG or IIG) course. True False
Answer: False
Explanation:
The statement that "you fail a course as a MAIN (residency) course, you can repeat that course as either a MAIN (residency) or an online (IG or IIG) course" is false.
It should be noted that if one fail a course as a residency course, the course can only be repeated as a main (residency) course and not an online course. When a course is failed, such course has to be repeated the following semester and this will give the person the chance to improve their GPA.
_____ is one of the Rs involved in design and implementation of any case-based reasoning (CBR) application.
Answer:
Group of answer choices
React
Reserve
Reason
Retain
I am not sure if its correct
Retain is one of the Rs involved in design and implementation of any case-based reasoning (CBR) application.
What is Case Based Reasoning?Case-based reasoning (CBR) is a known to be a form of artificial intelligence and cognitive science. It is one that likens the reasoning ways as primarily form of memory.
Conclusively, Case-based reasoners are known to handle new issues by retrieving stored 'cases' and as such ,Retain is one of the Rs that is often involved in design and implementation of any case-based reasoning (CBR) application.
Learn more about Retain case-based reasoning from
https://brainly.com/question/14033232
what is a high level language?
Answer:
a high level language is any programming language that enables development of a program in a much more user friendly programming context and is generally independent of the computers hardware architecture.
Answer:
A high-level language is any programming language that enables development of a program in a much more user-friendly programming context and is generally independent of the computer's hardware architecture.
Why input screens are better data entry than entreing data dirrctly to a table
Answer:
are better data entry designs than entering data directly to a table. ... hence a user can design input fields linked to several tables/queries.
Explanation:
Input screens are better data entry designs than entering data directly to a table because a user can design input fields linked to several tables/queries.
What is digital information?Digital information generally consists of data that is created or prepared for electronic systems and devices such as computers, screens, calculators, communication devices. These information are stored by cloud.
They are converted from digital to analog and vice versa with the help of a device.
Data entered in the table directly is easier than data entry method.
Thus, input screens are better data entry than entering data directly to a table.
Learn more about digital information.
https://brainly.com/question/4507942
#SPJ2
write a script to check command arguments. Display the argument one by one (use a for loop). If there is no argument provided, remind users about the mistake.
Answer and Explanation:
Using Javascript programming language, to write this script we define a function that checks for empty variables with if...else statements and then uses a for loop to loop through all arguments passed to the function's parameters and print them out to the console.
function Check_Arguments(a,b,c){
var ourArguments= [];
if(a){
ourArguments.push(a);}
else( console.log("no argument for a"); )
if(b){
ourArguments.push(b);}
else( console.log("no argument for b"); )
if(c){
ourArguments.push(c);}
else( console.log("no argument for c"); )
for(var i=0; i<ourArguments.length; i++){
Console.log(ourArguments[i]);
}
}
Your dashboard should show the sum and average as two separate columns. If you use measure names as the column field, what should you use for the marks
Answer:
Hence the answer is a sum.
Explanation:
Here the statement shows that the dashboard should show the sum and average as two separate columns if we name measure names because the column field then for marks we'll use the sum. Since the sum displays the sum of the values of all the fields, which refers to the marks of the person.
Therefore the answer is a sum.
If we use measure names as the column field, we should use "the sum".
A set of cells that are support equipment on about a similar vertical line, is considered as a column.
Usually, the name of the user or a client represents a field column, while the total and sometimes even averaging columns in our dashboards or screen are different.When using a summation of total summary, perhaps the column field (title), as well as its amount and averaging marking, are indicated.The preceding reply is thus right.
Learn more:
https://brainly.com/question/17271202
Write the name of test for the given scenario. Justify your answer.
The input values are entered according to the output values. If the results are ok then software is also fine but if results does not matched the input values then means any bugs are found which results the software is not ok. The whole software is checked against one input.
A-Assume you are being hired as a Scrum project Manager. Write down the list of responsibilities you are going to perform.
B-What are the qualifications required to conduct a glass box testing.
C-Write the main reasons of project failure and success according to the 1994 Standish group survey study.
D- Discuss your semester project.
Answer:
Cevap b okey xx
Explanation:
Sinyorrr
Should you remove jewelry, pens, and other metal objects before entering the magnetic resonance (MR) environment even if the equipment is not in use?
Answer:
Yes you should
Explanation:
When you are about to enter the mr the best thing you should do is to take off any form of metallic objects that you may have on you this could be a wrist watch, it could be other forms of accessories such as hair clips, keys or even coins. having any of these objects on you could cause a person to have an injury.
This is because this object could change its position when in the room also it could cause signal losses and could also make objects unclear for the radiologist
Write a program in c++ that will:1. Call a function to input temperatures for consecutive days in 1D array. NOTE: The temperatures will be integer numbers. There will be no more than 10 temperatures.The user will input the number of temperatures to be read. There will be no more than 10 temperatures.2. Call a function to sort the array by ascending order. You can use any sorting algorithm you wish as long as you can explain it.3. Call a function that will return the average of the temperatures. The average should be displayed to two decimal places.Sample Run:Please input the number of temperatures to be read5Input temperature 1:68Input temperature 2:75Input temperature 3:36Input temperature 4:91Input temperature 5:84Sorted temperature array in ascending order is 36 68 75 84 91The average temperature is 70.80The highest temperature is 91.00The lowest temperature is 36.00
Answer:
The program in C++ is as follows:
#include <iostream>
#include <iomanip>
using namespace std;
int* sortArray(int temp [], int n){
int tmp;
for(int i = 0;i < n-1;i++){
for (int j = i + 1;j < n;j++){
if (temp[i] > temp[j]){
tmp = temp[i];
temp[i] = temp[j];
temp[j] = tmp; } } }
return temp;
}
float average(int temp [], int n){
float sum = 0;
for(int i = 0; i<n;i++){
sum+=temp[i]; }
return sum/n;
}
int main(){
int n;
cout<<"Number of temperatures: "; cin>>n;
while(n>10){
cout<<"Number of temperatures: "; cin>>n; }
int temp[n];
for(int i = 0; i<n;i++){
cout<<"Input temperature "<<i+1<<": ";
cin>>temp[i]; }
int *sorted = sortArray(temp, n);
cout<<"The sorted temperature in ascending order: ";
for( int i = 0; i < n; i++ ) { cout << *(sorted + i) << " "; }
cout<<endl;
float ave = average(temp,n);
cout<<"Average Temperature: "<<setprecision(2)<<ave<<endl;
cout<<"Highest Temperature: "<<*(sorted + n - 1)<<endl;
cout<<"Lowest Temperature: "<<*(sorted + 0)<<endl;
return 0;
}
Explanation:
See attachment for complete source file with explanation
If we have a book object but we do not give it a "subtitle" property, the following code will return undefined. bar len = book.subtitle.length;
a) true
b) false
Answer:
The answer is "Option a"
Explanation:
In the given question, this statement is true because in this bar len as a reference is declared that creates a book class object that calls the subtitle length method, that's why it is true.