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
zepelin [54]
1 year ago
8

identify the difficulties with the k-nearest neighbor algorithm. a. both a and b b. calculate the distance of the test case from

all training cases c. none of the above d. curse of dimensionality
Computers and Technology
1 answer:
Levart [38]1 year ago
7 0

The difficulties with the k-nearest neighbor algorithm is option c. none of the above.

<h3>What problems does the K-nearest Neighbor algorithm have?</h3>

An unlabelled point is given a label based on its proximity to all other nearby labelled points. This is how it works. Its main drawbacks are that picking the "right" value of K is challenging and that it is highly computationally inefficient.

Hence, The supervised machine learning technique known as the k-nearest neighbors (KNN) can be used to tackle classification and regression issues. It is simple to use and comprehend, but it has the important problem of becoming noticeably slower as the amount of data in use increases.

Learn more about algorithm from

brainly.com/question/13800096
#SPJ1

You might be interested in
A palindrome number is a number that remains the same when its digits are reversed. Like 16461, for example, is a palindrome num
xxMikexx [17]

Answer:

Code is given below and output is attached as an image.

Explanation:

#include <iostream>

#include <fstream>

using namespace std;

bool isPalindrome(int n)

{

       // Find reverse of n

       int rev = 0;

       for (int i = n; i > 0; i /= 10)

               rev = rev * 10 + i % 10;

       // If n and rev are same,then n is a palindrome

       return (n == rev);

}

int main()

{

       int min = 1;        // Lower Bound

       int max = 200;      // Upper Bound

       ofstream myfile;

       myfile.open("palindrome.txt");

       for (int i = min + 1; i < max; i++)

               if (isPalindrome(i))

                       myfile << i << endl;

       myfile.close();

       return 0;

}

5 0
3 years ago
What is the difference between a network intrusion detection system (NIDS) and a network intrusion prevention system (NIPS)?
alisha [4.7K]

Answer:

Detection vs Prevention

Explanation:

  • A Network Intrusion Detection System as the name suggests it "detects" the attackers / vulnerabilities existed in the network system / infrastructure.
  • A Network Intrusion Prevention Detection System as the name suggests it "prevents" the attackers from hacking the system. While a detection just detects the abnormalities where as a prevention system can prevent them.
  • The detection system detects the vulnerabilities, security threats and the attackers in the system through the web traffic analyzers and security analyzers.
  • The prevention system prevents the network from being compromised. It tries to regain the access if already compromised.
  • Both the NIDS and NIPS have to be coordinated for the full protection of the network.
8 0
3 years ago
When you are driving on a rural road, if your right wheels run off the pavement, you should hold the steering wheel firmly and?
Lady_Fox [76]

When you are driving on a rural road, if your right wheels run off the pavement, you should hold the steering wheel firmly and such that it ought to be still with the bearing heading straight ahead and afterward while driving, it is ideal to back it off.    

Further Explanation:  

Rural Driving:  

Despite the fact that there is less traffic in rural zones those streets stay as hazardous as jam-packed thruways. There are some potential perils in country territories that you ought to know about: plain field and homestead garages and passages, animals crossing regions and ranch vehicles, harsh street conditions.  

Rural street:  

Rural streets are characterized as low traffic volume streets situated in forested and rangeland settings that serve private, recreational and asset the board employments. They may have been developed to moderately low measures with a restricted spending plan.  

Rural streets risky:

They additionally figure they can speed since, what are the chances of getting captured on a provincial street. Perilous Conditions – Because rustic streets are just two paths, it is risky to pass, the streets are typically smaller, and there is an expanded hazard for crashes that are head-on.  

Risky kind of street:  

Answer: Most individuals expect, on account of the high speeds included, that interstates or expressways are the most hazardous sort of street however they aren't. The most risky sort of streets for all drivers however particularly for youngsters are two-path nation or rustic streets  

Subject: Computers and technology

Level: High School

Keywords: Rural Driving, Rural street, Rural streets risky, Risky kind of street.

Related links:

Learn more about evolution on

brainly.com/question/2274303

brainly.com/question/10827308

8 0
3 years ago
Read 2 more answers
It's the same drop-down answers for both.
tia_tia [17]

Answer:

First, medium: can see all the subject but maintain the focus in him

Second, close-up: To se the facial expressions and emotions

5 0
3 years ago
SHOW ALL YOUR WORK. REMEMBER THAT PROGRAM SEGMENTS ARE TO BE WRITTEN IN JAVA. Assume that the classes listed in the Java Quick R
Ne4ueva [31]

Answer:

Check the explanation

Explanation:

CODE:-

import java.util.*;

class UserName{

  ArrayList<String> possibleNames;

  UserName(String firstName, String lastName){

      if(this.isValidName(firstName) && this.isValidName(lastName)){

          possibleNames = new ArrayList<String>();

          for(int i=1;i<firstName.length()+1;i++){

              possibleNames.add(lastName+firstName.substring(0,i));

          }  

      }else{

          System.out.println("firstName and lastName must contain letters only.");

      }

  }

  public boolean isUsed(String name, String[] arr){

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

          if(name.equals(arr[i]))

              return true;

      }

      return false;

  }

  public void setAvailableUserNames(String[] usedNames){

      String[] names = new String[this.possibleNames.size()];

      names = this.possibleNames.toArray(names);

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

          if(isUsed(usedNames[i],names)){

              int index = this.possibleNames.indexOf(usedNames[i]);

              this.possibleNames.remove(index);

              names = new String[this.possibleNames.size()];

              names = this.possibleNames.toArray(names);

          }

      }

  }

  public boolean isValidName(String str){

      if(str.length()==0) return false;

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

          if(str.charAt(i)<'a'||str.charAt(i)>'z' && (str.charAt(i)<'A' || str.charAt(i)>'Z'))

              return false;

      }

      return true;

  }

  public static void main(String[] args) {

      UserName person1 = new UserName("john","smith");

      System.out.println(person1.possibleNames);

      String[] used = {"harta","hartm","harty"};

      UserName person2 = new UserName("mary","hart");

      System.out.println("possibleNames before removing: "+person2.possibleNames);

      person2.setAvailableUserNames(used);

      System.out.println("possibleNames after removing: "+person2.possibleNames);

  }

}

Kindly check the attached image below for the code output.

5 0
3 years ago
Other questions:
  • Why did LISD had to block the game “among us”?
    8·2 answers
  • If you want to prioritize downloads of your mobile app instead of visits to your mobile site, you should: a) add a sitelink exte
    10·1 answer
  • What does this say:<br> √ans
    6·2 answers
  • What will be the value of i after the C statements at the right have been executed
    6·1 answer
  • A tool you might use to manipulate an image, such as a photograph, into a seamless repeating texture would be:
    7·2 answers
  • A videogame designer would be most interested in the _____ elements of beowulf.
    12·2 answers
  • You should structure the<br> first before you search for a relevant picture.
    11·1 answer
  • What is an information technology? ​
    12·2 answers
  • Assume you are given a boolean variable named isNegative and a 2-dimensional array of ints that has been created and assigned to
    8·1 answer
  • Including the word OR will make a search less specific.<br> O False<br> O True
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!