Question: Read this and answer the question

In a further refinement of the direct use of probabilistic modelling, statistical estimates can be coupled to an algorithm called arithmetic coding. Arithmetic coding is a more modern coding technique that uses the mathematical calculations of a finite-state machine to produce a string of encoded bits from a series of input data symbols. It can achieve superior compression to other techniques such as the better-known Huffman algorithm. It uses an internal memory state to avoid the need to perform a one-to-one mapping of individual input symbols to distinct representations that use an integer number of bits, and it clears out the internal memory only after encoding the entire string of data symbols. Arithmetic coding applies especially well to adaptive data compression tasks where the statistics vary and are context-dependent, as it can be easily coupled with an adaptive model of the probability distribution of the input data. An early example of the use of arithmetic coding was its use as an optional (but not widely used) feature of the JPEG image coding standard. It has since been applied in various other designs including H.264/MPEG-4 AVC and HEVC for video coding.

What uses an internal memory state?
Answer: Huffman algorithm


Problem: On December 30, 1922, the First Congress of the Soviets of the USSR approved the Treaty on the Creation of the USSR, by which Russia was united with the Ukrainian Soviet Socialist Republic, Byelorussian Soviet Socialist Republic, and Transcaucasian Soviet Federal Socialist Republic into a single federal state, the Soviet Union. Later treaty was included in the 1924 Soviet Constitution,[clarification needed] adopted on January 31, 1924 by the Second Congress of Soviets of the USSR.
On what date was the 1924 Soviet Constitution adopted?
The answer is the following: January 31, 1924


In 1924, the Tajik Autonomous Soviet Socialist Republic was created as a part of Uzbekistan, but in 1929 the Tajik Soviet Socialist Republic (Tajik SSR) was made a separate constituent republic, however the predominantly ethnic Tajik cities of Samarkand and Bukhara remained in the Uzbek SSR. Between 1927 and 1934, collectivization of agriculture and a rapid expansion of cotton production took place, especially in the southern region. Soviet collectivization policy brought violence against peasants and forced resettlement occurred throughout Tajikistan. Consequently, some peasants fought collectivization and revived the Basmachi movement. Some small scale industrial development also occurred during this time along with the expansion of irrigation infrastructure.
What happeded between 1927-1934?
collectivization of agriculture and a rapid expansion of cotton production took place


Input: Tibet
The Mongol Yuan dynasty, through the Bureau of Buddhist and Tibetan Affairs, or Xuanzheng Yuan, ruled Tibet through a top-level administrative department. One of the department's purposes was to select a dpon-chen ('great administrator'), usually appointed by the lama and confirmed by the Mongol emperor in Beijing. The Sakya lama retained a degree of autonomy, acting as the political authority of the region, while the dpon-chen held administrative and military power. Mongol rule of Tibet remained separate from the main provinces of China, but the region existed under the administration of the Yuan dynasty. If the Sakya lama ever came into conflict with the dpon-chen, the dpon-chen had the authority to send Chinese troops into the region.

Which dynasty ruled Tibet through a top-level administrative department?
Output: Mongol Yuan


Input: Article: Despite the fact that humans have occupied the territory of Portugal for thousands of years, something still remains of the original vegetation. In Gerês both deciduous and coniferous forests can be found, an extremely rare worldwide mature mediterranean forest remain in some parts of the Arrábida mountain and a subtropical laurissilva forest, dating back to the Tertiary period, covers its largest continuous area in the world in the Madeira main island. Due to the human population decrease and rural exodus, Pyrenean oak and other local native trees are colonizing many abandoned areas. Boar, Iberian red deer, roe deer, Iberian wild goat, for example, are reported to be expanding greatly, during the last decades. Boars were found recently roaming at night inside large urban areas, like in Setubal. Protected areas of Portugal include one national park (Portuguese: Parque Nacional), 12 natural parks (Portuguese: Parque Natural), nine natural reserves (Portuguese: Reserva Natural), five natural monuments (Portuguese: Monumento Natural), and seven protected landscapes (Portuguese: Paisagem Protegida), which include the Parque Nacional da Peneda-Gerês, the Parque Natural da Serra da Estrela and the Paul d'Arzila.

Now answer this question: How many national parks does Portugal have?

Output: 12


Problem: Mexico City is one of the most important economic hubs in Latin America. The city proper (Federal District) produces 15.8% of the country's gross domestic product. According to a study conducted by PwC, Mexico City had a GDP of $390 billion, ranking it as the eighth richest city in the world after the greater metropolitan areas of Tokyo, New York City, Los Angeles, Chicago, Paris, London and Osaka/Kobe (and the richest in the whole of Latin America). Excluding the rest of the Mexican economy, Mexico City alone would rank as the 30th largest economy in the world. Mexico City is the greatest contributor to the country's industrial GDP (15.8%) and also the greatest contributor to the country's GDP in the service sector (25.3%). Due to the limited non-urbanized space at the south—most of which is protected through environmental laws—the contribution of the Federal District in agriculture is the smallest of all federal entities in the country. Mexico City has one of the world's fastest-growing economies and its GDP is set to double by 2020.
What percentage of service sector national GDP does Mexico City account for?
The answer is the following:
25.3