Enable contrast version

# Tutor profile: Preethi G.

Inactive
Preethi G.
Tutor Satisfaction Guarantee

## Questions

### Subject:Machine Learning

TutorMe
Question:

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

Inactive
Preethi G.

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)

TutorMe
Question:

What is the worst-case time complexity, Big-O , of the below algorithm in terms of 𝙽, which is even, i.e, 𝙽=2𝑝? 𝚒𝚗𝚝 𝚌𝚘𝚞𝚗𝚝 = 𝟶; 𝚏𝚘𝚛 (𝚒𝚗𝚝 𝚒 = 𝙽; 𝚒 > 𝟶; 𝚒 /= 𝟸) { 𝚏𝚘𝚛 (𝚒𝚗𝚝 𝚓 = 𝟶; 𝚓 < 𝚒; 𝚓++) { 𝚌𝚘𝚞𝚗𝚝++; } }

Inactive
Preethi G.

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

TutorMe
Question:

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

Inactive
Preethi G.

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

Send a message explaining your
needs and Preethi will reply soon.
Contact Preethi