Skip to Content
C# 7 and .NET Core 2.0 High Performance
book

C# 7 and .NET Core 2.0 High Performance

by Ovais Mehboob Ahmed Khan
April 2018
Intermediate to advanced
300 pages
7h 41m
English
Packt Publishing
Content preview from C# 7 and .NET Core 2.0 High Performance

Logarithms

A logarithm operation is the complete opposite of an exponential operation. The logarithm is a quantity representing the power to which a base number must be raised to produce a given number.

For example, 2x = 32, where x=5, can be represented as log2 32 =5.

In this case, the logarithm of above expression is 5 that represents the power of a fixed number 2 which is raised to produce a given number 32.

Consider a binary search algorithm that works more effectively by splitting the list of an item into two datasets and uses a specific dataset based on the number. For example, say that I have a list of different numbers sorted in ascending order:

{1, 5, 6, 10, 15, 17, 20, 42, 55, 60, 67, 80, 100}

Say that we want to find number

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Professional C# 7 and .NET Core 2.0, 7th Edition

Professional C# 7 and .NET Core 2.0, 7th Edition

Christian Nagel
Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Tugberk Ugurlu, Alexander Zeitler, Ali Kheyrollahi
Enterprise Application Development with C# 9 and .NET 5

Enterprise Application Development with C# 9 and .NET 5

Ravindra Akella, Rishabh Verma, Arun Kumar Tamirisa, Suneel Kumar Kunani, Bhupesh Guptha Muthiyalu

Publisher Resources

ISBN: 9781788470049Supplemental Content