Question: Write Pseudocode for the following a. Write pseudocode to determine if there are more odd or even numbers in a list of integers. It should

 Write Pseudocode for the following a. Write pseudocode to determine if

Write Pseudocode for the following a. Write pseudocode to determine if there are more odd or even numbers in a list of integers. It should take a list of integer numbers as input and return either "odd" or "even". For example, if given the list [1, 2, 3, 4, 5] as input your pseudocode should return "odd" b. Cosine similarity (cos sim) is a commonly used similarity metric that measures how similar two vectors (arrays) of numbers are. The equation for cosine similarity is given by sim(A, B) = A middot B/||A|| middot ||B|| = Sigma^n_i=1 A_i B_i/2 Squareroot Sigma^n_i = 1 A^2_i^2 Squareroot Sigma^n_i=1 B^2_i where A_i and B_i are components of vector A and B respectively. Write pseudocode to calculate cosine similarity of two vectors A and B. it should take two arrays of numbers. A and B, as arguments and return a single value, their cosine similarity

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!