# Tutor profile: Preethi G.

## Questions

### Subject: Machine Learning

What is the most important preprocessing step for any machine learning algorithm?

Data analysis - Transforming and processing raw data to : 1. identify discriminating data attributes. 2. remove unwanted influence based on the scales and value range of data attributes. In Machine Learning (ML), each data attribute is termed as a feature. The features are given as inputs to the ML algorithm and hence form the basis for both learning and making future predictions. In order to facilitate learning, it is, therefore, necessary to choose discriminative features. Furthermore, reducing the feature space by getting rid of redundant features can provide better abstractions, thereby improving the algorithm's convergence as well as the generalisation capability to make better predictions. Some ML algorithms can be sensitive to data magnitude, by adopting techniques such as data normalisation, equal contributions across all features can be ensured.

### Subject: Computer Science (General)

What is the worst-case time complexity, Big-O , of the below algorithm in terms of π½, which is even, i.e, π½=2π? πππ πππππ = πΆ; πππ (πππ π = π½; π > πΆ; π /= πΈ) { πππ (πππ π = πΆ; π < π; π++) { πππππ++; } }

In order to find the time complexity, we need to find the number of times the instruction πππππ++ is executed. When π=π½, the statement is executed π½ times When π=π½/πΈ, the statement is executed π½/πΈ times When π=π½/$$ 2^{2} $$, the statement is executed π½/$$ 2^{2} $$ times Therefore, When π=π½/π½/$$ 2^{k} $$, the statement is executed π½/$$ 2^{k} $$ times, where π=0,1,...,π . We can verify this for the terminating case of π=π·. When π=π·, πππππ++ statement is executed 1 time. 1=π½/π½=π½/$$ 2^{p} $$ Let π(π½) denote the total number of times the instruction πππππ++ is executed. Then, π(π½) = $$ N $$+$$ \frac{N}{2} $$+$$ \frac{N}{4} $$+...+1 = $$ N $$+$$ \frac{N}{2} $$+$$ \frac{N}{2^{2}} $$+...+$$ \frac{N}{2^{p}} $$ = π½{$$ 1 $$+$$ \frac{1}{2} $$+$$ \frac{1}{2^{2}} $$+...+$$ \frac{1}{2^{p}} $$} The above equation represents the sum of a finite geometric progression (GP) with common ratio π = 1/2 and scale factor, π=π½. Applying the GP sum formula $$ \frac{a(1-r^p)}{1-r} $$, we have π(π½) = π½($$ \frac{1-1/2^p}{1-1/2} $$) = π½($$ \frac{1-1/2^p}{1/2} $$) = 2Γπ½Γ$$(1β1/2^π)$$ < 2Γπ½. Therefore, the given algorithm performs in O(N).

### Subject: Algebra

Three consecutive even integers add up to fifty four. What are the integers?

An even integer is an integer that is divisible by 2. Examples of even integers are 0, 2, 6, 100 and so on. Consecutive even integers are even integers that occur one after that other. For example, integers 2, 4 and 6 are three consecutive even integers. Now let us try to come up with a pattern that defines any three even consecutive integers. To start off, consider the consecutive integers 4, 6 and 8. We can write 6 and 8 in terms of 4 as follows: 6 = 4+ 2 8 = 4+ 4 Let us now replace 4 with a variable π, indicating the first even integer. Then the second and third consecutive even integers can be expressed as π+2 and π+4 respectively. Therefore, any three consecutive even integers are in the form π,π+2 and π+4. We can now formulate the given problem as : π+(π+2)+(π+4)=54 Simplifying: 3π+6=54 3π=48 π=16 This implies, π+2=16+2=18 π+4=16+4=20 Therefore, the required three even consecutive numbers are 16, 18 and 20

## Contact tutor

needs and Preethi will reply soon.