- Questions & Answers
- Accounting
- Computer Science
- Automata or Computationing
- Computer Architecture
- Computer Graphics and Multimedia Applications
- Computer Network Security
- Data Structures
- Database Management System
- Design and Analysis of Algorithms
- Information Technology
- Linux Environment
- Networking
- Operating System
- Software Engineering
- Big Data
- Android
- iOS
- Matlab

- Economics
- Engineering
- Finance
- Thesis
- Management
- Science/Math
- Statistics
- Writing
- Dissertations
- Essays
- Programming
- Healthcare
- Law

- Log in | Sign up

Added the file

Homework 1 DS 440 Data Mining Maximum points: 100 Due: September 28 (Wednesday), 11:59pm Question 1: (20 points) Fibonacci sequence (Fn), is defined as a sequence of numbers such that each number is the sum of two preceding ones starting from 0 and 1 (F0 = 0 and F1 = 1). Hence, we have the following value at n th position Fn = Fn−1 + Fn−2 Write a python function that takes the number of elements the user wants in the generated Fibonacci sequence as a parameter. The function should return the generated Fibonacci sequence when called. Hence, • For user input n = 0, function should return [ ] • For user input n = 1, function should return [0] • For user input n = 2, function should return [0, 1] • For user input n = 3, function should return [0, 1, 1] .. and so on Question 2: (20 points) Write a function in python that takes a list of numbers from the user and returns a different list which only contains those numbers from the original list that are within the range [µ − σ, µ + σ]. Here µ and σ are the mean and standard deviation of numbers in the original list. Question 3: (30 points) Write a function in python that takes a list (or an 1 dimension array) from the user as a parameter and 1. (10 points) Inserts a 0 at the second last position. For example if list was [0,1,2,3], then the modified list would be [0,1,2,0,3] 1 2. (10 points) Then checks for all the duplicates in the list and removes them. For example if the list was [0,1,2,0,3], then after removal it will become [0,1,2,3], i.e. always keeps the first instance of the number to be removed. 3. (10 points) Then finds the location of the 3rd smallest number in the list. For example if the list was [0,1,2,3], the location would be 2. The function should return the final modified list and the location found in part 3. Question 4: (30 points) Write a python function that takes an integer (n) as an input and: 1. (10 points) If the integer is less than 1, the function should print an error message and return nothing. 2. for other cases: (a) (10 points) Returns a numpy array with a checkerboard pattern. For example if user provides n = 5 to the function, then it should return the 5x5 array 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 (b) (10 points) Plots the checkboard pattern as an image with grayscale colormap. 2

Homework 1 DS 440 Data Mining Maximum points: 100 Due: September 28 (Wednesday), 11:59pm Question 1: (20 points) Fibonacci sequence (Fn), is defined as a sequence of numbers such that each number is the sum of two preceding ones starting from 0 and 1 (F0 = 0 and F1 = 1). Hence, we have the following value at n th position Fn = Fn−1 + Fn−2 Write a python function that takes the number of elements the user wants in the generated Fibonacci sequence as a parameter. The function should return the generated Fibonacci sequence when called. Hence, • For user input n = 0, function should return [ ] • For user input n = 1, function should return [0] • For user input n = 2, function should return [0, 1] • For user input n = 3, function should return [0, 1, 1] .. and so on Question 2: (20 points) Write a function in python that takes a list of numbers from the user and returns a different list which only contains those numbers from the original list that are within the range [µ − σ, µ + σ]. Here µ and σ are the mean and standard deviation of numbers in the original list. Question 3: (30 points) Write a function in python that takes a list (or an 1 dimension array) from the user as a parameter and 1. (10 points) Inserts a 0 at the second last position. For example if list was [0,1,2,3], then the modified list would be [0,1,2,0,3] 1 2. (10 points) Then checks for all the duplicates in the list and removes them. For example if the list was [0,1,2,0,3], then after removal it will become [0,1,2,3], i.e. always keeps the first instance of the number to be removed. 3. (10 points) Then finds the location of the 3rd smallest number in the list. For example if the list was [0,1,2,3], the location would be 2. The function should return the final modified list and the location found in part 3. Question 4: (30 points) Write a python function that takes an integer (n) as an input and: 1. (10 points) If the integer is less than 1, the function should print an error message and return nothing. 2. for other cases: (a) (10 points) Returns a numpy array with a checkerboard pattern. For example if user provides n = 5 to the function, then it should return the 5x5 array 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 (b) (10 points) Plots the checkboard pattern as an image with grayscale colormap. 2

Sep 26, 2022

SOLUTION.PDF## Get Answer To This Question

- 1. Add a new method, displayNote(), to the Note class. It should display a formatted version of the note,something like this:From: BarrettBody:Meeting tomorrow at 11Next, change the method...Dec 07, 2022
- The week 8 final project involves creating a Python program that builds on the assignments for weeks 3 and 4. In addition to the house cleaning service from the previous assignments, the company will...Dec 07, 2022
- Assignment:1) All prismatic manipulator is a simple manipulator. You can read its Jacobian matrix by inspecting the coordinates. Please derivate the Inverse Jacobian Matrix for this manipulator,...Dec 07, 2022
- CMSY 156 – Final Project Copyright ©2022 – Howard Community College All rights reserved; Unauthorized duplication prohibited. Copyright ©2022 – Howard Community College All rights reserved;...Dec 07, 2022
- Subject: Artificial Intelligence.All the instructions are provided in the Final Exam.zip file. Please read the instructions file carefully. I mentioned the time(IST) of the exam with a date.Dec 07, 2022
- Please look into the topic called event extraction. Similar to entity extraction, we want to extract the event or the key word mentioned by the article. Of course we would have to develop our...SolvedDec 06, 2022
- Write a modular python program for a Hotel at a vacation place to handle the guests charges as the person handling checkout makes their bill. There should be four functions to the program. Main should...Dec 06, 2022
- Write two programs that demonstrates Lists and also File Operations.The first program should have a loop and ask the user for 5 numbers (or an indefinite loop asking for numbers until the user gives a...SolvedDec 06, 2022
- 1Bentley University Fall 2022 CS 230 Introduction to Programming with Python FINAL PROJECT – INTERACTIVE DATA-EXPLORER In this last project you will develop an interactive data-driven...SolvedDec 06, 2022
- CPSC 231 Tutorial Exercise 4 and Homework Assignment 4 A Prison Escape Game (Learning Objective: understand the use of classes and objects, and file operations)Tutorial Exercise 4 Weight:...Dec 05, 2022

Copy and Paste Your Assignment Here

Copyright © 2022. All rights reserved.