Build a class and a driver for use in searching your computer’s secondary storage (hard disk or flash memory) for a specific file from a set of files indicated by a starting path. Lets start by looking at a directory listing. Note that every element is either a file or a directory.
Introduction and Driver
In this assignment, your job is to write a class that searches through a file hierarchy (a tree) for a specified file. Your FindFile class will search a directory (and all subdirectories) for a target file name.
For example, in the file hierarchy pictured above, the file "lesson.css" will be found once in a directory near the root or top-level drive name (e.g. "C:\") . Your FindFile class will start at the path indicated and will search each directory and subdirectory looking for a file match. Consider the following code that could help you build your Driver.java:
String targetFile = "lesson.css";
String pathToSearch ="
C:\\WCWC"; FindFile finder = new FindFile(MAX_NUMBER_OF_FILES_TO_FIND);
Finder.directorySearch(targetFile, pathToSearch);
File Searching
In general, searching can take multiple forms depending on the structure and order of the set to search. If we can make promises about the data (this data is sorted, or deltas vary by no more than 10, etc.), then we can leverage those constraints to perform a more efficient search. Files in a file system are exposed to clients of the operating system and can be organized by filename, file creation date, size, and a number of other properties. We’ll just be interested in the file names here, and we’ll want perform a brute force (i.e., sequential) search of these files looking for a specific file. The way in which we’ll get file information from the operating system will involve no ordering; as a result, a linear search is the best we can do. We’d like to search for a target file given a specified path and return the location of the file, if found. You should sketch out this logic linearly before attempting to tackle it recursively.
FindFile Class Interface
FindFile(int maxFiles): This constructor accepts the maximum number of files to find.
void directorySearch(String target, String dirName): The parameters are the target file name to look for and the directory to start in.
int getCount(): This accessor returns the number of matching files found
String[] getFiles(): This getter returns the array of file locations, up to maxFiles in size.
Requirements
Your program should be recursive.
You should build and submit at least two files: FindFile.java and Driver.java.
Throw an exception (IllegalArgumentException) if the path passed in as the starting directory is not a valid directory.
Throw an exception if you've found the MAX_NUMBER_OF_FILES_TO_FIND and catch and handle this in your main driver. Your program shouldn't crash but rather exit gracefully in the unusual situation that we've discovered the maximum number of files we were interested in, reporting each of the paths where the target files were found.
The only structures you can use in this assignment are basic arrays and your Stack, Queue, or ArrayList from the previous homeworks. Do not use built-in data structures like Java's ArrayList. To accomplish this, put in the following constructor and method to your ArrayList, Stack, or Queue:
public ArrayList(Object[] input) { data = input;
numElements = input.length;
}
public Object get(int index) {
return data[index];
}

Answers

Answer 1

Answer:

hxjdbjebjdbdubainsinnsubd jdn dkdjddkndjbdubdb su djsbsijdnudb djdbdujd udbdj. djdjdjidndubdu dubdjdbdinndjndidn s dj dudbdjubd dujdjjdjdb djdbdjd udbdudb jndjdbudbdue idbd dudbid d dujejdunebudbdjdj d


Related Questions

List the resulting array after each call of the merge method. Indicate the number of character-to-character comparisons made for each call to merge (line 22 of the merge method at the end of the assignment). Sort the following array of characters into alphabetical order: C Q S A X B T.
01 public static void mergesort (char[] a, int i, int r){
02
03 if (1 >= r) {
04 return;
05 }
06 int middle = (1+r)/2;
07 mergesort(a, l, middle);
08 mergesort(a, middle+1, r);
09 merge(a, l, middle, r);
10 }
11
12 public static void merge (char[] a, int i, int m, int r){
13
14 //copy lower half of the array into b
15 char [] b = new char[m-1+1];
16 for (int i = 0; i <= m-1; i++ ) {
17 b[i] = a (1+i);
18 }
19
20 int i = 0, j m+1, k = 1;
21 while (i <= m-1 && j <= r ) {
22 if (a[j] < b[i]) {
23 a[j];
24 k += 1;
25 j += 1;
26 } else {
27 a[k] b[i];
28 k += 1;
29 i += 1;
30 }
31 }
32 while (i <= m-1) {
33 a[k] b[i];
34 k += 1;
35 i += 1;
36 }
37 while ( j <= r ) {
38 a[k] a[j];
39 k += 1;
40 j += 1;
41 }
42 }

Answers

Answer:

40j

Explanation:

the no. divided by one is that no.

A Quicksort (or Partition Exchange Sort) divides the data into 2 partitions separated by a pivot. The first partition contains all the items which are smaller than the pivot. The remaining items are in the other partition. You will write four versions of Quicksort:
• Select the first item of the partition as the pivot. Treat partitions of size one and two as stopping cases.
• Same pivot selection. For a partition of size 100 or less, use an insertion sort to finish.
• Same pivot selection. For a partition of size 50 or less, use an insertion sort to finish.
• Select the median-of-three as the pivot. Treat partitions of size one and two as stopping cases.
As time permits consider examining additional, alternate methods of selecting the pivot for Quicksort.

Merge Sort is a useful sort to know if you are doing External Sorting. The need for this will increase as data sizes increase. The traditional Merge Sort requires double space. To eliminate this issue, you are to implement Natural Merge using a linked implementation. In your analysis be sure to compare to the effect of using a straight Merge Sort instead.

Create input files of four sizes: 50, 1000, 2000, 5000 and 10000 integers. For each size file make 3 versions. On the first use a randomly ordered data set. On the second use the integers in reverse order. On the third use the
integers in normal ascending order. (You may use a random number generator to create the randomly ordered file, but it is important to limit the duplicates to <1%. Alternatively, you may write a shuffle function to randomize one of your ordered files.) This means you have an input set of 15 files plus whatever you deem necessary and reasonable. Files are available in the Blackboard shell, if you want to copy them. Your data should be formatted so that each number is on a separate line with no leading blanks. There should be no blank lines in the file. Even though you are limiting the occurrence of duplicates, your sorts must be able to handle duplicate data.

Each sort must be run against all the input files. With five sorts and 15 input sets, you will have 75 required runs.

The size 50 files are for the purpose of showing the sorting is correct. Your code needs to print out the comparisons and exchanges (see below) and the sorted values. You must submit the input and output files for all orders of size 50, for all sorts. There should be 15 output files here.

The larger sizes of input are used to demonstrate the asymptotic cost. To demonstrate the asymptotic cost you will need to count comparisons and exchanges for each sort. For these files at the end of each run you need to print the number of comparisons and the number of exchanges but not the sorted data. It is to your advantage to add larger files or additional random files to the input - perhaps with 15-20% duplicates. You may find it interesting to time the runs, but this should be in addition to counting comparisons and exchanges.

Turn in an analysis comparing the two sorts and their performance. Be sure to comment on the relative numbers of exchanges and comparison in the various runs, the effect of the order of the data, the effect of different size files, the effect of different partition sizes and pivot selection methods for Quicksort, and the effect of using a Natural Merge Sort. Which factor has the most effect on the efficiency? Be sure to consider both time and space efficiency. Be sure to justify your data structures. Your analysis must include a table of the comparisons and exchanges observed and a graph of the asymptotic costs that you observed compared to the theoretical cost. Be sure to justify your choice of iteration versus recursion. Consider how your code would have differed if you had made the other choice.

Answers

The necessary conditions and procedures needed to accomplish this assignment is given below. Quicksort is an algorithm used to sort data in a fast and efficient manner.

What is the Quicksort?

Some rules to follow in the above work are:

A)Choose the initial element of the partition as the pivot.

b) Utilize the same method to select the pivot, but switch to insertion sort as the concluding step for partitions that contain 100 or fewer elements.

Lastly,  Utilize the same method of pivot selection, but choose insertion sort for partitions that are of a size equal to or lesser than 50 in order to accomplish the task.

Learn more about Quicksort  from

https://brainly.com/question/29981648

#SPJ1

what subject can you find in the house?

Answers

In a house, you can find various subjects or objects related to different areas of knowledge. Some common subjects that you can find in a house include:

Architecture and Design: The structure and layout of the house itself, including the architectural design, interior design elements, and spatial arrangement.

Construction and Engineering: The materials used in building the house, construction techniques, plumbing and electrical systems, and other engineering aspects.

Home Economics: The study of managing and maintaining a household, including topics such as cooking, cleaning, laundry, budgeting, and home organization.

Interior Decoration: The art and science of decorating and arranging the interior spaces of a house, including furniture, color schemes, artwork, and accessories.

Thus, there are so many subjects that can be found at home.

For more details regarding subjects, visit:

https://brainly.com/question/3541306

#SPJ1

What does the list "car_makes" contain after these commands are executed?

car_makes = ["Ford", "Volkswagen", "Toyota"]
car_makes.remove("Ford")


1. ['', 'Porsche', 'Vokswagen', 'Toyota']
2. ['Volkswagen', 'Toyota']
3. ['Toyota', 'Ford']
4. [null, 'Porsche', 'Toyota']

Answers

Answer:

The correct answer is option 2: ['Volkswagen', 'Toyota']

Explanation:

After the remove method is called on the car_makes list to remove the element "Ford", the list car_makes will contain the elements "Volkswagen" and "Toyota"

And office now has a total of 35 employees 11 were added last year the year prior there was a 500% increase in staff how many staff members were in the office before the increase

Answers

There were 5 staff members in the office before the increase.

To find the number of staff members in the office before the increase, we can work backward from the given information.

Let's start with the current total of 35 employees. It is stated that 11 employees were added last year.

Therefore, if we subtract 11 from the current total, we can determine the number of employees before the addition: 35 - 11 = 24.

Moving on to the information about the year prior, it states that there was a 500% increase in staff.

To calculate this, we need to find the original number of employees and then determine what 500% of that number is.

Let's assume the original number of employees before the increase was x.

If we had a 500% increase, it means the number of employees multiplied by 5. So, we can write the equation:

5 * x = 24

Dividing both sides of the equation by 5, we find:

x = 24 / 5 = 4.8

However, the number of employees cannot be a fraction or a decimal, so we round it to the nearest whole number.

Thus, before the increase, there were 5 employees in the office.

For more questions on staff members

https://brainly.com/question/30298095

#SPJ8

How could you use a spreadsheet you didn't like to simplify access also the problem

Answers

Answer:

Explanation:

......

In early Oklahoma, __________ tribes were most nomadic. A. hunting B. farming C. semi-sedentary D. agricultural Please select the best answer from the choices provided A B C D

Answers

Answer:

A

Explanation:

They needed to follow the food/buffalo

what number am i. i am less than 10 i am not a multiple of 2 i am a coposite

Answers

Answer: 9 is less than 10, it is odd (not a multiple of 2), and it is composite (since it has factors other than 1 and itself, namely 3). Therefore, the answer is 9.

The answer is nine because if you write all the numbers that are under ten you can see that 2, 4, 6, and, 8 are multiples of 2 so you can’t do that so then you gotta see which ones are composite which is nine because 1, 5, and 7 don’t have any more factors than for example 7 and 1.

The work associated with software engineering can be categorized into three generic phases, regardless of application area, project size, or complexity namely the phase which phase which focuses on how and the phase which focuses on what the focuses on change. i support ii. development 2​

Answers

Answer:

The work associated with software engineering can be categorized into three generic phases,regardless of application area, project size, or complexity namely the_____________ phase which focuses on what, the______________ phase which focuses on how and the_____________ phase which focuses on change ? i. support ii. development iii. definition

[A]. 1, 2, 3

[B]. 2, 1, 3

[C]. 3, 2, 1. ✅✅

[D]. 3, 1, 2

An array in c++ is decleared as ''float split[31][13][23] How many bytes does it occupy in memory?​

Answers

Answer:

Size of array = size of each element * total number of elements

Explanation:

array occupies 38,332 bytes (or approximately 37.4 KB) of memory in C++

In Java only please:
4.15 LAB: Mad Lib - loops
Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully funny) ways.

Write a program that takes a string and an integer as input, and outputs a sentence using the input values as shown in the example below. The program repeats until the input string is quit and disregards the integer input that follows.

Ex: If the input is:

apples 5
shoes 2
quit 0
the output is:

Eating 5 apples a day keeps you happy and healthy.
Eating 2 shoes a day keeps you happy and healthy

Answers

Answer:

Explanation:

import java.util.Scanner;

public class MadLibs {

   public static void main(String[] args) {

       Scanner input = new Scanner(System.in);

       String word;

       int number;

       do {

           System.out.print("Enter a word: ");

           word = input.next();

           if (word.equals("quit")) {

               break;

           }

           System.out.print("Enter a number: ");

           number = input.nextInt();

           System.out.println("Eating " + number + " " + word + " a day keeps you happy and healthy.");

       } while (true);

       System.out.println("Goodbye!");

   }

}

In this program, we use a do-while loop to repeatedly ask the user for a word and a number. The loop continues until the user enters the word "quit". Inside the loop, we read the input values using Scanner and then output the sentence using the input values.

Make sure to save the program with the filename "MadLibs.java" and compile and run it using a Java compiler or IDE.

What is characteristic of the Computer?

Answer: Speed, a computer works with much higher speed.

Answers

Answer:

storage to store the data and files

accuracy, diligence, versatility and storage capacity.

Help pls....
I need some TYPES
and some KINDS
of computers​

Answers

Answer:

Mainframe Computer. It is high capacity and costly computer.

Super Computer. This category of computer is the fastest and also very expensive.

Workstation Computer. The computer of this category is a high-end and expensive one.

Personal Computer (PC)

Apple Macintosh (Mac)

Laptop computer (notebook)

Tablet and Smartphone

Explanation:

A crohomebook
Hp
Apple Mac book

Write a function "doubleChar(" str) which returns a string where for every character in the original string, there are two characters.

Answers

Answer:

//Begin class definition

public class DoubleCharTest{

   

   //Begin the main method

    public static void main(String [ ] args){

       //Call the doubleChar method and pass some argument

       System.out.println(doubleChar("There"));

    }

   

    //Method doubleChar

    //Receives the original string as parameter

    //Returns a new string where for every character in

    //the original string, there are two characters

    public static String doubleChar(String str){

        //Initialize the new string to empty string

       String newString = "";

       

        //loop through each character in the original string

       for(int i=0; i<str.length(); i++){

            //At each cycle, get the character at that cycle

            //and concatenate it with the new string twice

           newString += str.charAt(i) + "" + str.charAt(i);

        }

        //End the for loop

       

        //Return the new string

       return newString;

       

    } //End of the method

   

} // End of class declaration

Sample Output:

TThheerree

Explanation:

The code above has been written in Java and it contains comments explaining each line of the code. Kindly go through the comments. The actual lines of executable codes have been written in bold-face to differentiate them from comments.

A sample output has also been given.

Snapshots of the program and sample output have also been attached.

Write a function "doubleChar(" str) which returns a string where for every character in the original
Write a function "doubleChar(" str) which returns a string where for every character in the original

What was the Internet originally created to do? (select all that apply)

Answers

The Internet was initially constituted for various purposes. it is was   originally created to options a, c and d:

share researchcommunicateshare documentsWhat is Internet

Communication: The Internet was planned to aid ideas and data exchange 'tween analysts and chemists. It proposed to combine various calculating and networks to authorize logical ideas and cooperation.

Research and Development: The Internet's production was driven for one need to share research verdicts, experimental dossier, and possessions among academies, research organizations, and administration institutions.

Read more about Internet here:

https://brainly.com/question/21527655

#SPJ4

You have read about the beginnings of the Internet and how it was created. What was the Internet originally created to do? (select all that apply)

share research.

Play games.

Communicate.

Share documents.

Sell toys

What are the six primary roles that information system play in organizations? How are information system used in each context

Answers

The primary roles that information system play in organizations are:

Decision makingOperational managementCustomer interactionCollaboration on teamsStrategic initiativesIndividual productivityHow are information system used in each context

The six main functions of information systems in an organization are as follows:

1. Operational management entails the creation, maintenance, and enhancement of the systems and procedures utilized by businesses to provide goods and services.

2. Customer relationship management: Maintaining positive and fruitful relationships with customers, clients, students, patients, taxpayers, and anyone who come to the business to purchase goods or services is essential for success. Effective customer relationships contribute to the success of the business.

3. Making decisions: Managers make decisions based on their judgment. Business intelligence is the information management system used to make choices using data from sources other than an organization's information systems.

4. Collaboration and teamwork: These two skills complement the new information systems that allow people to operate from anywhere at a certain moment. Regardless of their position or location, individuals can participate in online meetings and share documents and applications.

5. Developing a competitive edge: A firm can establish a competitive advantage by outperforming its rival company and utilizing information systems in development and implementation.

6. Increasing productivity of objection: Smart phone applications that mix voice calls with online surfing, contact databases, music, email, and games with software for minimizing repetitive tasks are tools that can help people increase productivity.

Learn more about information system from
https://brainly.com/question/14688347
#SPJ1

What is the function of the Output Unit​

Answers

Output devices provide a visible (monitor), audible (speakers), or media response from the computer.

Select the correct answer from each drop-down menu. What data types can you suggest for the given scenario? Adja is working in a program for the school grading system. She needs to use a(n) (First drop down) to store the name of the student and a(n) array of (Second drop down) to store all the grade of each subject of each student.
Options for the first drop down are- A. Integer, B.String, C.Character.
Options for the second drop down are- A.Floats, B.Character, C.String.

Answers

Based on the given scenarios, the data types that would be best suited for each is:

C. Character.A. Floats

What is a Data Type?

This refers to the particular type of data item that is used in order to define values that can be taken or used in a programming language.

Hence, it can be seen that based on the fact that Adja is working in a program for the school grading system, she would need to use a character to store the name of the student and a float to store all the grades of each subject of each student because they are in decimals.

With this in mind, one can see that the answers have been provided above.,

In lieu of this, the correct answer to the given question that have been given above are character and floats.

Read more about data types here:

https://brainly.com/question/179886

#SPJ1

Answer:

A- String

B- Character

Use a method from the JOptionPane class to request values from the user to initialize the instance variables of Election objects and assign these objects to the array. The array must be filled. ​

Use a method from the JOptionPane class to request values from the user to initialize the instance variables

Answers

To use the JOptionPane class in Java to request values from the user and initialize instance variables of Election objects and assign them to an array, you can follow the steps given in the image:

What is the JOptionPane class

The code uses JOptionPane. showInputDialog to show a message box and get information from the user. IntegerparseInt changes text into a number.

After completing a process, the elections list will have Election items, and each item will have the information given by the user.

Learn more about JOptionPane class from

brainly.com/question/30974617

#SPJ1

Use a method from the JOptionPane class to request values from the user to initialize the instance variables

In which of the following situations must you stop for a school bus with flashing red lights?

None of the choices are correct.

on a highway that is divided into two separate roadways if you are on the SAME roadway as the school bus

you never have to stop for a school bus as long as you slow down and proceed with caution until you have completely passed it

on a highway that is divided into two separate roadways if you are on the OPPOSITE roadway as the school bus

Answers

The correct answer is:

on a highway that is divided into two separate roadways if you are on the OPPOSITE roadway as the school bus

What happens when a school bus is flashing red lights

When a school bus has its flashing red lights activated and the stop sign extended, it is indicating that students are either boarding or exiting the bus. In most jurisdictions, drivers are required to stop when they are on the opposite side of a divided highway from the school bus. This is to ensure the safety of the students crossing the road.

It is crucial to follow the specific laws and regulations of your local jurisdiction regarding school bus safety, as they may vary.

Learn more about school bus at

https://brainly.com/question/30615345

#SPJ1

You work part-time at a computer repair store. You are building a new computer. A customer has purchased two serial ATA (SATA) hard drives for his computer. In addition, he would like you to add an extra eSATA port that he can use for external drives. In

Answers

Install an eSATA expansion card in the computer to add an extra eSATA port for the customer's external drives.

To fulfill the customer's request of adding an extra eSATA port for external drives, you can install an eSATA expansion card in the computer. This expansion card will provide the necessary connectivity for the customer to connect eSATA devices, such as external hard drives, to the computer.

First, ensure that the computer has an available PCIe slot where the expansion card can be inserted. Open the computer case and locate an empty PCIe slot, typically identified by its size and the number of pins. Carefully align the expansion card with the slot and firmly insert it, ensuring that it is properly seated.

Next, connect the power supply cable of the expansion card, if required. Some expansion cards may require additional power to operate properly, and this is typically provided through a dedicated power connector on the card itself.

Once the card is securely installed, connect the eSATA port cable to the expansion card. The cable should be included with the expansion card or can be purchased separately if needed.

Connect one end of the cable to the eSATA port on the expansion card and the other end to the desired location on the computer case where the customer can easily access it.

After all connections are made, close the computer case, ensuring that it is properly secured. Power on the computer and install any necessary drivers or software for the expansion card, following the instructions provided by the manufacturer.

With the eSATA expansion card installed and configured, the customer will now have an additional eSATA port available on their computer, allowing them to connect external drives and enjoy fast data transfer speeds.

For more question on computer visit:

https://brainly.com/question/30995425

#SPJ8

1. Identify two real-world examples of problems whose solutions do scale well.

2. Identify two real-world examples of problems whose solutions do not scale well.

3. Identify one problem that is so complex that there is no computational solution to feasibly solve the problem in a reasonable amount of time.

Answers

1. Identify two real-world examples of problems whose solutions do scale well.

ANSWER; Real word examples of

problems whose solutions do scale well are;

- To find the smallest/ largest element in a list of data.

This is used when there is trial to find from a table the person that posseses the largest attribute.examples are salary and age.

Or it is also used when finding the highest score on a test, however,this is scalable as it can be done by both humans and machines according to the problem size but in the same fashion.

- Solving simple arithmetic equations.

Solving a simple arithmetic problem is one of an easily scaled problem, however,this depends on the number of operations and the variables present in the equation and which corresponds to daily life situations like adding, finding mean and counting.

2. Identify two real-world examples of problems whose solutions do not scale well.

Real word examples of problems which do not scale well are;

- The sorting of a large list of numbers do not scale well,this is because as the steps required increases as square or increases as more by the increase in size.

- Multiplication of matrices for various applications.example of this is like solving equations.

3. Identify one problem that is so complex that there is no computational solution to feasibly solve the problem in a reasonable amount of time.

Example of a problem that is not feasible computer-wise would be to find the optimal way or best to play the game of Chess. Here, it is possible to tell a good move but to tell the best move is computationally not possible.

As citizens online or in real life, how, or why, do the choices we make, almost always seems to have an effect (positive or negative) on others?

Answers

Answer:

The choices we make as citizens online or in real life have both positive and negative effects on others because we are social beings, who live in an interconnected world.  Every choice has some consequences on the decision maker or on others.  We make the choices, but the consequences follow natural laws, which we cannot control.  When Adam and Eve chose to disobey God, human beings down the ages lost their innocence and freedom.  When the Nazis chose to purify their race of European Jews, there was the Holocaust between 1941 and 1945.  When the Minneapolis police officer chose to slaughter George Floyd in cold blood, violent protests erupted throughout the U.S.

Another current example to buttress this is the ravaging coronavirus pandemic, which originated in Wuhan - China.  When the Chinese Communist  government chose to suppress the information about the virus as it usually does, the aftermath is the thousands of dead humans all over the world, the economic downturn, loss of jobs, virus infections with other public health side effects, plus many other untold consequences.

Had the Chinese government made a different choice, the virus could not have spread worldwide as it had.  Similarly, some citizens online choose to circulate unverifiable ("fake news") information.  Many people have been misled by their antics, some have lost their lives, while many others live in perpetual bigotry and hatred.  All these are because of individual choices.

Explanation:

Choice is a concept in decision making.  It is the judging of the merits of multiple options so that one or some of the options are selected.  When a voter votes for one candidate against others, she has made a choice (decision).  Of course, choices have consequences, which we must live with.  Choices also define our present and our future.

We would like the set of points given in the following figure into 1D space. The set of points has been
generated using this instruction [X, y = make_moons(n_samples = 100)], where X are the 2D features
and y are the labels(blue or red).
How to do that while keeping separable data point with linear classification? Give the
mathematics and the full algorithm.
How to apply the SVM algorithm on this data without dimension reduction? Give the
mathematics and full algorithm.

Answers

One way to project the 2D data points onto a 1D space while preserving linear separability is through the use of a linear discriminant analysis (LDA) technique. LDA finds the linear combination of the original features that maximizes the separation between the different classes.

What is the mathematics  in SVM algorithm?

The mathematics behind LDA involve finding the eigenvectors of the within-class scatter matrix and the between-class scatter matrix and selecting the eigenvector that corresponds to the largest eigenvalue. The full algorithm for LDA can be outlined as follows:

Compute the mean vectors for each class

Compute the within-class scatter matrix (SW) and the between-class scatter matrix (SB)Compute the eigenvectors and eigenvalues of the matrix (SW⁻¹SB)Select the eigenvector that corresponds to the largest eigenvalue as the linear discriminantProject the original data onto the new 1D space using the linear discriminant

Regarding the SVM algorithm, it can be applied directly to the original 2D data without the need for dimension reduction. The mathematics behind SVM involve finding the hyperplane that maximizes the margin, or the distance between the closest data points of each class, while also ensuring that the data points are correctly classified.

The full algorithm for SVM can be outlined as follows:

Select a kernel function (e.g. linear, polynomial, radial basis function)Train the model by solving the optimization problem that maximizes the marginUse the trained model to classify new data points by finding the hyperplane that separates the different classesIt is important to note that, in case of non-linearly separable data, SVM algorithm uses the kernel trick to map the original data into a higher dimensional space, where the data is linearly separable.

Learn more about algorithm from

https://brainly.com/question/24953880
#SPJ1

John typed 350 word in 25 minute. What is his typing speed.

Answers

Answer:

14 works per min

Explanation:

350 divided by 25 equals 14

Change the file name for index.html to index.php
Add PHP code to index.php to display an error message named $error_message just below the page heading. Be sure to check that $error_message is not an empty value. Format it to be bold, red text.
Display error messages if the Product Description, List Price and Discount Percent fields are empty after the user submits the form. (1)
Display an error message if the List Price or Discount Percent data entered is not a number after the user submits the form.
Display an error message if the List Price or Discount Percent data entered is less than zero after the user submits the form.
If an error message is displayed, take the user back to the index.php page.
Add a sales tax calculation of 8% based on the discounted price. Then, display the sales tax rate and the calculated sales tax amount after the discounted price.

Answers

The PHP code is given below:

PHP code

if(isset($_REQUEST['login_btn'])){

       $email = filter_var(strtolower($_REQUEST['email']),FILTER_SANITIZE_EMAIL); //strtolower changes email to all lower case

       $password = strip_tags($_REQUEST['password']);

The remaining code is in the file attached.

 

Read more about PHP here:

https://brainly.com/question/27750672

#SPJ1

Write and test a program that computes the area of a circle. This program should request a number representing a radius as input from the user. It should use the formula 3.14 * radius ** 2 to compute the area, and output this result suitably labeled.

Answers

Answer:

radius = float(input('Radius: '))

area = 3.14 * (radius ** 2)

print(f'Area of the circle is: {area}')

When you key in the date, Excel applies a standard format that shows:

Answers

The fundamental capabilities of all spreadsheets are present in Microsoft Excel , which organizes data manipulations like arithmetic operations using a grid of cells arranged in numbered rows and letter-named columns and pivot tables.

Thus, It has a variety of built-in functionalities to address financial, engineering, and statistical requirements. Additionally, it has a very limited three-dimensional graphical display and can present data as line graphs, histograms, and charts and Microsoft Excel.

Using pivot tables and the scenario manager, it enables segmenting of data to view its reliance on multiple parameters for diverse viewpoints.

A data analysis tool is a pivot table. This is accomplished by using PivotTable fields to condense big data sets. It features a programming component called Visual Basic for Applications that enables the user to apply a wide range of numerical techniques and operations.

Thus, The fundamental capabilities of all spreadsheets are present in Microsoft Excel , which organizes data manipulations like arithmetic operations using a grid of cells arranged in numbered rows and letter-named columns and pivot tables.

Learn more about pivot tables, refer to the link:

https://brainly.com/question/29786921

#SPJ7

Instructions
Create a multimedia project that contains the text element and all the contents that you have studied about that element

Answers

Answer:

iiiio888887776558777u765

Design a program that asks the user for a series of names (in no particular order). After the final person’s name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb.
In pseudo and java

Answers

The program for the same in python is as follows :

#This gets the count of names to be input

count = int(input("Total names: "))

#This initializes the list of names

names = []

#This iteration gets all names

for i in range(count):

  #This gets a name

  name = input("Enter a name: ")

  #This appends it to the list

  names.append(name)

#This sorts the name

names.sort()

#This prints the first and the last name, alphabetically

print(names[0] + " " + names[-1])

Learn more about such codes here https://brainly.com/question/22654163

#SPJ10

Other Questions
20 is what percent of 52? Solve with an Equation In order for you to experience the pain of a sprained ankle,________ must first relay messages from your ankle to your central nervous system. 2. Would a sea otter catch these prey items alone or with help from others? Using the quantitative data provided inTable 1 below, prove which method of hunting your sea otter must utilize to obtain its daily energy needs. Youwill answer this question on the next page when you complete your Claim-Evidence-Reasoning but you must firstwork out the math below. Using the "observed sea otter diet" above, calculate the energy consumed todetermine if it satisfies this female's daily needs.Table 1Individual food itemClamMusselUrchinCrabMollusk (small octopus or snail)OBSERVED SEA OTTER DIET: After observing the same female seaotter for a day, you collected the following feeding data:40 urchins, 12 mussels and 4 crabs.print privileAverage mass of individual prey (kg)0.0570.0850.0990.0850.080Energy available per prey (kcal)40751268070Show your work here using the data in Table 1 to calculate the energy consumed by this female sea otter: typically provide the funds necessary for workers' compensation group of answer choices employers employees You conduct a poll in which you randomly select 1000 registered voters from New York City and ask if they approve of the job their mayor is doing. The population for this study is please help!! I need it step by step I don't understand True or false: a bond's value is not affected by changes in the market rate of interest. The teachers wanted to have the school year end in May however the contract stated June.How should this sentence be punctuated? The layer of the Earth called the mantle is often described as convecting. In this context, convection is translate Hallo, wie, er, sie, sie, er to english Question 5On problem #18, which variable will be the easiest to isolate in order to solve the system usingsubstitution?A: x, in the top equation B: y. in the top equationC: x, in the bottom equationD: y, in the bottom equationCan someone please please please help me! What error results if the curvature and refraction correction is neglected in trigonometric leveling for sights: (a) 3000 ft long (b) 1200 m long (c) 4500 ft long? Contribution Margin Ratio a. Imelda Company budgets sales of $990,000, fixed costs of $20,000, and variable costs of $89,100. What is the contribution margin ratio for Imelda Company? (Enter your answ This function of your installation's DRF is a command and control node that assists in directing installation emergency management and response actions.Command Post need help asapppp alg2 and trig What is the future value of a lump sum of $18,443 invested for 15 years at 3.2 percent compounded annually? a.$29,581.97 b.$348,092.67 c.$29,786.22 d.$400,306.57 A company makes 5 blue cars for every 3 white cars it makes. If the company makes 15 white cars in one day, how many blue cars will it make? Write an equation of the line with a slope of -3/4 and y-intercept of -6 The Dell Computer Company makes its own computers and delivers them directly to customers who order them via the Internet. To achieve its objective of speed, Dell makes each of its five most popular computers and transports them to warehouses from which it generally takes one day to deliver a computer to the customer. This strategy requires high levels of inventory that add considerably to the cost. To lower these costs the operations manager wants to use an inventory model. He notes demand during lead time is normally distributed and he needs to know the mean to compute the optimum inventory level. He observes 25 lead time periods and records the demand during each period. The manager would like a 95% confidence interval estimate of the mean demand during lead time. Assume that the manager knows that the standard deviation is 75 computers. Construct and interpret the confidence Interval Estimator. A golf ball strikes a hard, smooth floor at an angle of 27.0 and, as the drawing shows, rebounds at the same angle. The mass of the ball is 0.0200 kg, and its speed is 33.0 m/s just before and after striking the floor. What is the magnitude of the impulse applied to the golf ball by the floor? (Hint: Note that only the vertical component of the ball's momentum changes during impact with the floor, and ignore the weight of the ball.)